summaryrefslogtreecommitdiff
path: root/Src/Zle
AgeCommit message (Collapse)AuthorFilesLines
2021-04-0648391: fix display problem in menu-completeJun-ichi Takimoto1-1/+1
Take account of the trailing file type character even when '-d disp' is given to compadd.
2021-02-1147997: Disable XTRACE around user-defined completion widgets.Bart Schaefer1-0/+3
2021-01-2747744: Fix vi repeats with hooks in use.GammaFunction1-0/+2
2020-06-27unposted (after 46068): Fix a compiler warning.Daniel Shahaf1-1/+1
The warning was: . warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2020-06-2746072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve ↵Daniel Shahaf1-2/+17
add-zle-hook-widget support for multiple hook functions. See workers/46004 for the use-case.
2020-06-2546068 (tweaked) (was: github #57): region_highlight: Add memo= support.Daniel Shahaf3-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.)
2020-05-0345730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.Daniel Shahaf1-5/+35
Also, write/extend docstrings for sepjoin() and zjoin().
2020-05-0345729: internal: Add a second parameter to zlinklist2array(), analogously to ↵Daniel Shahaf2-4/+4
hlinklist2array(). Will be used in the next commit.
2020-02-2445487: Missing mod_export declarations for AIXPeter Stephenson3-3/+3
2020-01-09Fix typos reported by codespell in Src/Mikael Magnusson1-1/+1
2020-01-0945269: Fix misspellings in completions and elsewhere.Jens Schleusener9-11/+11
2019-12-3124581: Fix array assignments in shell word splitting and completion.Peter Stephenson1-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.
2019-12-1745058: internal: Add symbolic names to possible values of zexit()'s ↵Daniel Shahaf1-2/+2
"from_where" parameter. No functional change.
2019-12-1044997: GLOB_COMPLETE fix for compctl file completion.Peter Stephenson1-1/+21
Dashes could cause problems in directory prefixes.
2019-12-0444976: fixup describe-key-briefly for visual modeOliver Kiddle1-0/+4
2019-10-28unposted: fix indentation (whitespace-only change)romkatv1-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.
2019-10-04bug fix: infinite loop when tty disappearsromkatv1-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.
2019-07-2644582: Fix foregoing commit to use DPUTS() betterKamil Dudka1-6/+4
2019-07-2444566: make sure Zle doesn't crash if history entry not foundKamil Dudka1-2/+12
2019-06-2044435: Handling digita arguments for :h and :t.Peter Stephenson1-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.
2019-05-28fix cursor position with ZLE_RPROMPT_INDENT=0romkatv1-20/+20
2019-05-0844275: Fix compset -p/-s multibyte inconsistency and documentationdana1-1/+1
2019-05-0744274: allow finer control of completion match soring with compadd's -o optionOliver Kiddle3-27/+90
2019-04-1044168 (tweaked to remove change to errflag): Fix interrupt handling of zle -F.Peter Stephenson1-1/+5
If interrupted by irrelevant interrupt (EINTR only is set), don't set the local error flag, just retry.
2019-04-1044215: Maintain LASTWIDGET across reset-prompt.Roman Perepelitsa6-10/+18
This avoids side effects of asynchronous notifications.
2019-04-1044202: Rewrite to use memmove() for possibly overlapping copyPeter Stephenson1-5/+3
2019-02-14c.f. 44062: Back off clearflag change to ZLE line init.Peter Stephenson1-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.
2019-01-0343969: untokenize Dash for compctl with GLOB_SUBST setPeter Stephenson1-0/+9
2018-11-0943793: computil could overrun bufferKamil Dudka1-2/+2
2018-11-0543759: add support for true colour terminalsOliver Kiddle4-24/+29
2018-09-3043531: Completion: Fix some false positives in the logic for "are these two ↵Daniel Shahaf1-3/+1
candidates completions equivalent".
2018-09-03Don't handle ZLE functions for single key.Peter Stephenson4-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.
2018-08-1743294: Add ZLE_RECURSIVE parameter.Peter Stephenson2-0/+19
2018-07-3143219 (except term{cap,info}.c): fix several memory leaksJun-ichi Takimoto1-0/+2
2018-07-3043225: Recalculate ZLE timeout.Peter Stephenson1-0/+2
Needed when looping owing to having handled a special fd.
2018-06-2543084: Variable warning suppression enhancements.Peter Stephenson1-3/+5
Add vared -g option along the lines of typeset -g. Set reply safely in zsh_directory_name_cdr.
2018-06-0642939: pm argument to set_registers is not unusedEitan Adler1-1/+1
2018-05-3142870: another improvement of 'compset -q'Jun-ichi Takimoto1-4/+6
zlemetall need not count the 'x' added at the cursor in set_comp_sep()
2018-05-2542809: slightly improve 'compset -q'Jun-ichi Takimoto1-3/+6
2018-05-1342760: move stack variable outside while loop scope as it is accessed in the ↵Oliver Kiddle1-1/+1
while condition
2018-05-1142185: safety when removing separators in completiondana1-1/+2
2018-05-0842751: Protect shell status in ZLE timed function handler.Peter Stephenson1-0/+4
Otherwise status from sched and other asynchronous functions could escape back to the main shell.
2018-04-0742605: properly free the vi registers hashOliver Kiddle2-3/+14
2018-04-0742600: error paths for _values leaked the exclusion list arrayOliver Kiddle1-0/+4
2018-04-0542575: fix to not complete options in the argument to another optionOliver Kiddle1-1/+1
2018-03-2442519, CVE-2018-1083: check bounds on PATH_MAX-sized buffer used for file ↵Oliver Kiddle1-0/+6
completion candidates
2018-03-2442501: avoid out of bound pointer (as 42487)Jun-ichi Takimoto3-8/+7
2018-03-2142487: Fix pointer problems in compctl.Peter Stephenson1-32/+32
Pointing off the front of a string caused warnings with gcc 7.3.0 and is somewhat murky C anyway.
2018-02-2623180: Fix expand-or-complete with ~[...].Peter Stephenson1-0/+9
The square brackets shouldn't be treated as wildcards.
2018-01-0442164: fix digits in format escapes in completion listingsdana1-3/+3