Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 45487: Missing mod_export declarations for AIX | Peter Stephenson | 2020-02-24 | 1 | -1/+1 |
| | |||||
* | 45269: Fix misspellings in completions and elsewhere. | Jens Schleusener | 2020-01-09 | 1 | -1/+1 |
| | |||||
* | 45058: internal: Add symbolic names to possible values of zexit()'s ↵ | Daniel Shahaf | 2019-12-17 | 1 | -2/+2 |
| | | | | "from_where" parameter. No functional change. | ||||
* | 44976: fixup describe-key-briefly for visual mode | Oliver Kiddle | 2019-12-04 | 1 | -0/+4 |
| | |||||
* | bug fix: infinite loop when tty disappears | romkatv | 2019-10-04 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | When TTY disappears and there is at least one fd watcher, raw_getbyte() can enter an infinite loop where it keeps calling poll() over and over again. To reproduce, open a terminal, start zsh and type this: rm -f /tmp/fifo mkfifo /tmp/fifo exec 3<>/tmp/fifo do-nothing() {} zle -F 3 do-nothing Then make TTY disappear. For example, kill the parent with `kill -9 $PPID` and close the terminal window if it's still there. Observe that zsh is consiming 100% CPU. Note that do-nothing() never gets called. This patch makes the poll() loop in raw_getbyte() terminate when TTY is signalling POLLHUP. This makes the behavior consistent with the case where TTY disappears while no fd watchers are installed. | ||||
* | 44168 (tweaked to remove change to errflag): Fix interrupt handling of zle -F. | Peter Stephenson | 2019-04-10 | 1 | -1/+5 |
| | | | | | If interrupted by irrelevant interrupt (EINTR only is set), don't set the local error flag, just retry. | ||||
* | 44215: Maintain LASTWIDGET across reset-prompt. | Roman Perepelitsa | 2019-04-10 | 1 | -5/+11 |
| | | | | This avoids side effects of asynchronous notifications. | ||||
* | c.f. 44062: Back off clearflag change to ZLE line init. | Peter Stephenson | 2019-02-14 | 1 | -1/+0 |
| | | | | | | | | This causes problems with failed ZLE reads that printed a message in the display area, in particular ignoreEOF warnings. It appears it's not needed for the overall effect of the fixes in zsh-workers/40302, commit 34656ec2. | ||||
* | Don't handle ZLE functions for single key. | Peter Stephenson | 2018-09-03 | 1 | -11/+11 |
| | | | | | | For read -k and read -q where we use ZLE, we just want a single key and not full ZLE processing. So don't handle timed ZLE functions when preforming the read. | ||||
* | 43294: Add ZLE_RECURSIVE parameter. | Peter Stephenson | 2018-08-17 | 1 | -0/+9 |
| | |||||
* | 43225: Recalculate ZLE timeout. | Peter Stephenson | 2018-07-30 | 1 | -0/+2 |
| | | | | Needed when looping owing to having handled a special fd. | ||||
* | 43084: Variable warning suppression enhancements. | Peter Stephenson | 2018-06-25 | 1 | -3/+5 |
| | | | | | | Add vared -g option along the lines of typeset -g. Set reply safely in zsh_directory_name_cdr. | ||||
* | 42751: Protect shell status in ZLE timed function handler. | Peter Stephenson | 2018-05-08 | 1 | -0/+4 |
| | | | | | Otherwise status from sched and other asynchronous functions could escape back to the main shell. | ||||
* | 41275: Leave stdin open when executing widgets | Stephane Chazelas | 2017-06-13 | 1 | -0/+7 |
| | |||||
* | 40305: fix some problems redisplaying command line after interrupt. | Peter Stephenson | 2017-01-10 | 1 | -0/+1 |
| | | | | | | | | | | | | Back off previous fix as this only covered some subset of problems. Remaining problems happend after reset-prompt in TRAPINT. One was in complist and is fixed by not attempting to list after an error or interrupt. The other was owing to not resetting clearflag when ZLE was re-entered. | ||||
* | unposted: clear ERRFLAG_ERROR before invoking immortal widget (cf. 39934) | Bart Schaefer | 2016-11-23 | 1 | -1/+5 |
| | | | | Updates commit cbb9ca3d | ||||
* | 39986, 39989: improve handling of vi-repeat-change | Oliver Kiddle | 2016-11-20 | 1 | -5/+29 |
| | | | | | | Save previous vi change and throw away a new change that fails. Add zle -f vichange to allow shell widget to be a single change. Fix repeat of command where numeric arguments were multiplied. | ||||
* | 39934: if a widget execution fails, try to execute a corresponding immortal ↵ | Barton E. Schaefer | 2016-11-13 | 1 | -3/+15 |
| | | | | widget instead. | ||||
* | 39933: more of zlecallhook() in redrawhook() | Barton E. Schaefer | 2016-11-13 | 1 | -2/+17 |
| | | | | add commentary on some of the differences | ||||
* | 39550: reset signal queue in recursiveedit() | Barton E. Schaefer | 2016-10-03 | 1 | -0/+6 |
| | |||||
* | 39547: handle zero delta in calc_timeout() | Barton E. Schaefer | 2016-10-03 | 1 | -1/+1 |
| | |||||
* | 39545: Add some missing unqueue_signals(). | Peter Stephenson | 2016-10-03 | 1 | -0/+1 |
| | | | | All of these are added simply to fit existing logic in other branches. | ||||
* | Call the pre-redraw hook if there is text in the buffer on init | Mikael Magnusson | 2016-09-30 | 1 | -1/+13 |
| | |||||
* | 38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do. | Daniel Shahaf | 2016-07-28 | 1 | -1/+1 |
| | |||||
* | 38845: reset region_active before entering zle | Oliver Kiddle | 2016-07-17 | 1 | -1/+1 |
| | | | | | It was done on exit but before zle-line-finish. Also reword documentation on region to better cover vi mode. | ||||
* | 38241: ungetkeycmd() needs to unmetafy key string. | Peter Stephenson | 2016-04-04 | 1 | -0/+15 |
| | | | | | | Use the new function to simplify memory management in prefix handling. Third time lucky. | ||||
* | 38191: additional re-entrancy checks in reexpandprompt() | Barton E. Schaefer | 2016-03-21 | 1 | -8/+27 |
| | | | | | | Do not free global pointers until after promptexpand() in case they are referenced from signal handlers, and check for window size changes during promptexpand(). | ||||
* | 37590: Invoke zle-line-pre-redraw during isearch. | Daniel Shahaf | 2016-01-14 | 1 | -1/+2 |
| | |||||
* | 36650: Add zle-line-pre-redraw hook for highlighting | Mikael Magnusson | 2015-12-19 | 1 | -1/+30 |
| | |||||
* | 37337: Delay freeing widget until not in use. | Peter Stephenson | 2015-12-07 | 1 | -2/+19 |
| | |||||
* | 37186: a couple more WARN_CREATE_GLOBAL fixes | Peter Stephenson | 2015-11-22 | 1 | -1/+2 |
| | |||||
* | 36709: zle -f from inside widget to set flags and make yank start/end zle ↵ | Mikael Magnusson | 2015-10-01 | 1 | -2/+3 |
| | | | | params writable | ||||
* | Read full multibyte string early for self-insert | Peter Stephenson | 2015-09-11 | 1 | -2/+8 |
| | |||||
* | 36470: Auxiliary to 36468, return an empty buffer from zleread() if a widget ↵ | Barton E. Schaefer | 2015-09-10 | 1 | -1/+1 |
| | | | | exits | ||||
* | 35814: POSTEDIT needs to be unmetafied | Oliver Kiddle | 2015-07-23 | 1 | -1/+1 |
| | |||||
* | 35674: make an undo event for initial buffer contents | Oliver Kiddle | 2015-07-03 | 1 | -0/+1 |
| | |||||
* | 35637: remove the now unused module hook for reverse-menu-complete | Oliver Kiddle | 2015-06-29 | 1 | -2/+0 |
| | |||||
* | 35474, 35492: support the bracketed paste mode of newer terminal emulators | Oliver Kiddle | 2015-06-19 | 1 | -1/+14 |
| | |||||
* | 34653: move aborted vared lines to ZLE_VARED_ABORTED | Peter Stephenson | 2015-03-06 | 1 | -1/+3 |
| | |||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 1 | -5/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combination of 12 commits from interrupt_abort branch. Basic strategy is to introduce bits to errflag and to set and reset them separately. Remove interrupt status on return to main keymap. Turn off ERRFLAG_INT for always block. Restore bit thereafter: we probably need a new variable in order to allow user interrupts to be reset in the always block. Add TRY_BLOCK_INTERRUPT This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too. Ensure propagation of SIGINT from exited job. If received by foreground job, shell uses ERRFLAG_INT, not ERRFLAG_ERROR, to set the new state. Reset errflag before precmd() Add always block in _main_completion to fix ZLS_COLORS Ensures we get the right state of $ZLS_COLORS at the end of _main_complete even if there's an interrupt. However, the "right state" is a bit messy as it depends on styles. | ||||
* | 33800: remove old workaround for ancient systems to | Oliver Kiddle | 2014-11-30 | 1 | -41/+2 |
| | | | | consume typeahead before setting up the terminal | ||||
* | 33770: avoid calling identical FIONREAD ioctl twice in succession | Oliver Kiddle | 2014-11-25 | 1 | -9/+5 |
| | |||||
* | 33632: use viopp and visual local keymaps if they exist | Oliver Kiddle | 2014-11-17 | 1 | -1/+4 |
| | |||||
* | 33512: add support for "0 vi buffer and yank to it | Oliver Kiddle | 2014-10-23 | 1 | -1/+1 |
| | |||||
* | 32427: avoid busy loop on closed descriptors for "zle -F" handlers | Barton E. Schaefer | 2014-02-23 | 1 | -3/+36 |
| | | | | | Also assure the handlers are called on error conditions and document the extra argument that is passed in the error case. | ||||
* | 32342: fix overstrike for vi mode and use varying vi commands at line start | Oliver Kiddle | 2014-02-05 | 1 | -8/+8 |
| | |||||
* | 32334 (modified so KEEPSUFFIX is unchanged for vi-cmd-mode; based on | Oliver Kiddle | 2014-02-05 | 1 | -1/+1 |
| | | | | | Jun T: 32324, 32330), 32347, Jun T: 32344, 32349: add split-undo zle widget for configurable breaks in undo sequence | ||||
* | 32314: merge undo events corresponding to vi change in the vi-cmd-mode ↵ | Oliver Kiddle | 2014-01-31 | 1 | -6/+5 |
| | | | | widget so undo from insert mode is useful again | ||||
* | 32308: Improve initialising of vi change. | Peter Stephenson | 2014-01-28 | 1 | -1/+1 |
| | | | | | Better handling when entering viins on entry to editor. Slightly changed since post to use vi command a. | ||||
* | 31961: rationalise fd watching to use structure | Peter Stephenson | 2013-11-12 | 1 | -20/+20 |
| |