summaryrefslogtreecommitdiffstats
path: root/Src/Zle/zle_main.c
Commit message (Collapse)AuthorAgeFilesLines
* 54093 (tweaked per 54101): Cleanup isarr fields and variablesPhilippe Altherr2025-11-241-1/+1
|
* 54074, 54082: add an opaque key for use in zle_highlight/region_highlight to ↵Oliver Kiddle2025-11-171-2/+2
| | | | allow mixing of colours
* 54043, 54055: allow highlighing attributes to be turned back offOliver Kiddle2025-11-121-2/+2
|
* 53402, 54042: make timeout for terminal queries configurable via a ↵Oliver Kiddle2025-11-101-1/+1
| | | | | | .term.querywait variable Also clarify documentation and include fewer of the new extensions by default
* 53404: terminal integration with semantic markersOliver Kiddle2025-11-101-10/+29
|
* 53372, 53375: query terminal properties on ZLE startupOliver Kiddle2025-11-101-0/+4
|
* 54007: remove some uses of mod_export that were likely unintendedOliver Kiddle2025-10-311-3/+2
|
* 51950 (tweak per 51949): correct Thingy refcount in raw_getbyte()Bart Schaefer2023-07-261-1/+2
|
* 51320, 51383: fixes to prevent later reappearance of old attributesOliver Kiddle2023-02-091-1/+1
| | | | Also associated test updates and a test fix for TERM=dumb.
* 51310: zle -F handlers preserve LASTWIDGETBart Schaefer2023-01-211-0/+2
| | | | Also fix email address in an old ChangeLog entry
* 51281: keep track of attributes left on at the end of left and right prompts ↵Oliver Kiddle2023-01-101-1/+6
| | | | and reapply them explicitly as appropriate
* 51258, 51272: refactor handling of terminal attributes, removing OFF flags ↵Oliver Kiddle2023-01-101-9/+10
| | | | in zattr
* 51212: remove STOUC() macroOliver Kiddle2022-12-161-2/+2
| | | | | This served as a workaround for ancient compilers where casts to unsigned char were broken.
* users/26736: avoid infinite loop in getbyte from exit hookBart Schaefer2021-05-151-0/+4
|
* 47744: Fix vi repeats with hooks in use.GammaFunction2021-01-271-0/+2
|
* 45487: Missing mod_export declarations for AIXPeter Stephenson2020-02-241-1/+1
|
* 45269: Fix misspellings in completions and elsewhere.Jens Schleusener2020-01-091-1/+1
|
* 45058: internal: Add symbolic names to possible values of zexit()'s ↵Daniel Shahaf2019-12-171-2/+2
| | | | "from_where" parameter. No functional change.
* 44976: fixup describe-key-briefly for visual modeOliver Kiddle2019-12-041-0/+4
|
* bug fix: infinite loop when tty disappearsromkatv2019-10-041-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 Stephenson2019-04-101-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 Perepelitsa2019-04-101-5/+11
| | | | This avoids side effects of asynchronous notifications.
* c.f. 44062: Back off clearflag change to ZLE line init.Peter Stephenson2019-02-141-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 Stephenson2018-09-031-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 Stephenson2018-08-171-0/+9
|
* 43225: Recalculate ZLE timeout.Peter Stephenson2018-07-301-0/+2
| | | | Needed when looping owing to having handled a special fd.
* 43084: Variable warning suppression enhancements.Peter Stephenson2018-06-251-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 Stephenson2018-05-081-0/+4
| | | | | Otherwise status from sched and other asynchronous functions could escape back to the main shell.
* 41275: Leave stdin open when executing widgetsStephane Chazelas2017-06-131-0/+7
|
* 40305: fix some problems redisplaying command line after interrupt.Peter Stephenson2017-01-101-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 Schaefer2016-11-231-1/+5
| | | | Updates commit cbb9ca3d
* 39986, 39989: improve handling of vi-repeat-changeOliver Kiddle2016-11-201-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. Schaefer2016-11-131-3/+15
| | | | widget instead.
* 39933: more of zlecallhook() in redrawhook()Barton E. Schaefer2016-11-131-2/+17
| | | | add commentary on some of the differences
* 39550: reset signal queue in recursiveedit()Barton E. Schaefer2016-10-031-0/+6
|
* 39547: handle zero delta in calc_timeout()Barton E. Schaefer2016-10-031-1/+1
|
* 39545: Add some missing unqueue_signals().Peter Stephenson2016-10-031-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 initMikael Magnusson2016-09-301-1/+13
|
* 38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do.Daniel Shahaf2016-07-281-1/+1
|
* 38845: reset region_active before entering zleOliver Kiddle2016-07-171-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 Stephenson2016-04-041-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. Schaefer2016-03-211-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 Shahaf2016-01-141-1/+2
|
* 36650: Add zle-line-pre-redraw hook for highlightingMikael Magnusson2015-12-191-1/+30
|
* 37337: Delay freeing widget until not in use.Peter Stephenson2015-12-071-2/+19
|
* 37186: a couple more WARN_CREATE_GLOBAL fixesPeter Stephenson2015-11-221-1/+2
|
* 36709: zle -f from inside widget to set flags and make yank start/end zle ↵Mikael Magnusson2015-10-011-2/+3
| | | | params writable
* Read full multibyte string early for self-insertPeter Stephenson2015-09-111-2/+8
|
* 36470: Auxiliary to 36468, return an empty buffer from zleread() if a widget ↵Barton E. Schaefer2015-09-101-1/+1
| | | | exits
* 35814: POSTEDIT needs to be unmetafiedOliver Kiddle2015-07-231-1/+1
|