about summary refs log tree commit diff
path: root/Src/Zle
Commit message (Collapse)AuthorAgeFilesLines
* 49292: Src/Zle/complist.c: turn off colors before clearing to end of lineMarlon Richert2021-09-061-14/+19
|
* unposted (cf. 49202 and 49217): insertlastword ignores blank/missing history ↵Bart Schaefer2021-09-061-2/+7
| | | | entries when repeating
* 48954: avoid crash in reverse-menu-complete from menuselect without 'menu' ↵Oliver Kiddle2021-06-031-3/+2
| | | | in $compstate[insert]
* users/26736: avoid infinite loop in getbyte from exit hookBart Schaefer2021-05-151-0/+4
|
* 48790: COMPLETE_IN_WORD inside brace-paramBart Schaefer2021-05-151-4/+24
|
* 48391: fix display problem in menu-completeJun-ichi Takimoto2021-04-061-1/+1
| | | | | Take account of the trailing file type character even when '-d disp' is given to compadd.
* 47997: Disable XTRACE around user-defined completion widgets.Bart Schaefer2021-02-111-0/+3
|
* 47744: Fix vi repeats with hooks in use.GammaFunction2021-01-271-0/+2
|
* unposted (after 46068): Fix a compiler warning.Daniel Shahaf2020-06-271-1/+1
| | | | | | | The warning was: . warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
* 46072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve ↵Daniel Shahaf2020-06-271-2/+17
| | | | | | add-zle-hook-widget support for multiple hook functions. See workers/46004 for the use-case.
* 46068 (tweaked) (was: github #57): region_highlight: Add memo= support.Daniel Shahaf2020-06-253-6/+81
| | | | | | | | | | | | | | | | This is useful when multiple plugins add region_highlight entries and subsequently want to remove only their own entries. Without this functionality, recognizing one's region_highlight entries is not trivial because the 'start' and 'end' offsets are modified by editing of $BUFFER and the highlight specification may not be unique or distinctive. The tweaks are as follows: - Change zfree() to zsfree() per workers/46070. - Remove the mem.c hunk, as it changed the signature of only one out of two alternative definitions of zsfree(). (The definition that hunk touched is the one that's not used by default.)
* 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.Daniel Shahaf2020-05-031-5/+35
| | | | Also, write/extend docstrings for sepjoin() and zjoin().
* 45729: internal: Add a second parameter to zlinklist2array(), analogously to ↵Daniel Shahaf2020-05-032-4/+4
| | | | | | hlinklist2array(). Will be used in the next commit.
* 45487: Missing mod_export declarations for AIXPeter Stephenson2020-02-243-3/+3
|
* Fix typos reported by codespell in Src/Mikael Magnusson2020-01-091-1/+1
|
* 45269: Fix misspellings in completions and elsewhere.Jens Schleusener2020-01-099-11/+11
|
* 24581: Fix array assignments in shell word splitting and completion.Peter Stephenson2019-12-311-1/+3
| | | | | | Assignments after the first were not recognised as such as without the full parser the state didn't return to command position. Fix this in bufferwords() and the completion miniparser.
* 45058: internal: Add symbolic names to possible values of zexit()'s ↵Daniel Shahaf2019-12-171-2/+2
| | | | "from_where" parameter. No functional change.
* 44997: GLOB_COMPLETE fix for compctl file completion.Peter Stephenson2019-12-101-1/+21
| | | | Dashes could cause problems in directory prefixes.
* 44976: fixup describe-key-briefly for visual modeOliver Kiddle2019-12-041-0/+4
|
* unposted: fix indentation (whitespace-only change)romkatv2019-10-281-30/+30
| | | | | | | Indentatin in moveto was broken by 3eea35d0 (my bad), making it difficult to read. This commit reverts it to what it used ot be. While at it, fix indentation in a few other places in the same file.
* 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.
* 44582: Fix foregoing commit to use DPUTS() betterKamil Dudka2019-07-261-6/+4
|
* 44566: make sure Zle doesn't crash if history entry not foundKamil Dudka2019-07-241-2/+12
|
* 44435: Handling digita arguments for :h and :t.Peter Stephenson2019-06-201-1/+1
| | | | | | | Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments.
* fix cursor position with ZLE_RPROMPT_INDENT=0romkatv2019-05-281-20/+20
|
* 44275: Fix compset -p/-s multibyte inconsistency and documentationdana2019-05-081-1/+1
|
* 44274: allow finer control of completion match soring with compadd's -o optionOliver Kiddle2019-05-073-27/+90
|
* 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-106-10/+18
| | | | This avoids side effects of asynchronous notifications.
* 44202: Rewrite to use memmove() for possibly overlapping copyPeter Stephenson2019-04-101-5/+3
|
* 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.
* 43969: untokenize Dash for compctl with GLOB_SUBST setPeter Stephenson2019-01-031-0/+9
|
* 43793: computil could overrun bufferKamil Dudka2018-11-091-2/+2
|
* 43759: add support for true colour terminalsOliver Kiddle2018-11-054-24/+29
|
* 43531: Completion: Fix some false positives in the logic for "are these two ↵Daniel Shahaf2018-09-301-3/+1
| | | | candidates completions equivalent".
* Don't handle ZLE functions for single key.Peter Stephenson2018-09-034-16/+16
| | | | | | 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-172-0/+19
|
* 43219 (except term{cap,info}.c): fix several memory leaksJun-ichi Takimoto2018-07-311-0/+2
|
* 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.
* 42939: pm argument to set_registers is not unusedEitan Adler2018-06-061-1/+1
|
* 42870: another improvement of 'compset -q'Jun-ichi Takimoto2018-05-311-4/+6
| | | | zlemetall need not count the 'x' added at the cursor in set_comp_sep()
* 42809: slightly improve 'compset -q'Jun-ichi Takimoto2018-05-251-3/+6
|
* 42760: move stack variable outside while loop scope as it is accessed in the ↵Oliver Kiddle2018-05-131-1/+1
| | | | while condition
* 42185: safety when removing separators in completiondana2018-05-111-1/+2
|
* 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.
* 42605: properly free the vi registers hashOliver Kiddle2018-04-072-3/+14
|
* 42600: error paths for _values leaked the exclusion list arrayOliver Kiddle2018-04-071-0/+4
|
* 42575: fix to not complete options in the argument to another optionOliver Kiddle2018-04-051-1/+1
|