summaryrefslogtreecommitdiff
path: root/Src/Zle/compcore.c
AgeCommit message (Collapse)AuthorFilesLines
2025-01-3053335: Remove unused dupstring_glen() functionOliver Kiddle1-13/+9
Also make use of the dupstring_wlen() variant in more places to avoid a strlen()
2024-03-1852750: remove ansi2knr support for old pre-ansi K&R compilersOliver Kiddle1-2/+2
2023-10-2652244: Fix a batch of minor defects reported by Coverity.Bart Schaefer1-2/+3
Coverity defects 1547831, 1547826 (remove unused function), 1521551, 1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789, 1255787, 1255782, 1255750
2023-03-0551483: Enable assignment and expansion of parameters with ksh-like namespace ↵Bart Schaefer1-2/+2
prefixes.
2022-12-1651212: remove STOUC() macroOliver Kiddle1-3/+3
This served as a workaround for ancient compilers where casts to unsigned char were broken.
2022-04-1150042: Another fix for 49915Mikael Magnusson1-1/+1
If the last element in the list is a duplicate, we would walk off the end
2022-04-0349957: Brown paper bag for 49915Mikael Magnusson1-2/+2
The code would crash when n == 0. There's not really any point doing any of this when n is 0 so just skip everything. It also tried to NULL terminate a list a little to eagerly.
2022-03-3049926: remove unused variable from 49915Mikael Magnusson1-1/+1
2022-03-3049915: Efficient dedup for unsorted completionsMikael Magnusson1-20/+34
2022-03-3049893: Fix comments for UNIQCON/ALLMikael Magnusson1-1/+7
2021-11-0149535: fix completion for ${<TAB> and ${(a)<TAB>Jun-ichi Takimoto1-11/+3
2021-10-3049528: allow multiple -D options to compaddOliver Kiddle1-18/+41
2021-09-2849450: don't display explanation with compadd -x if any of -D, -A or -O are ↵Oliver Kiddle1-1/+1
also used
2021-05-1548790: COMPLETE_IN_WORD inside brace-paramBart Schaefer1-4/+24
2021-02-1147997: Disable XTRACE around user-defined completion widgets.Bart Schaefer1-0/+3
2020-05-0345729: internal: Add a second parameter to zlinklist2array(), analogously to ↵Daniel Shahaf1-2/+2
hlinklist2array(). Will be used in the next commit.
2020-01-0945269: Fix misspellings in completions and elsewhere.Jens Schleusener1-1/+1
2019-05-0744274: allow finer control of completion match soring with compadd's -o optionOliver Kiddle1-22/+30
2018-09-3043531: Completion: Fix some false positives in the logic for "are these two ↵Daniel Shahaf1-3/+1
candidates completions equivalent".
2018-07-3143219 (except term{cap,info}.c): fix several memory leaksJun-ichi Takimoto1-0/+2
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-1142185: safety when removing separators in completiondana1-1/+2
2017-06-1741242: zstrbcmp(...) removed in favor of zstrcmp(..., ↵Barton E. Schaefer1-1/+3
SORTIT_IGNORING_BACKSLASHES) This should make sorting consistent in completion listings vs. elsewhere.
2016-11-1639945: allow further tab presses to move on to menu completion even when ↵Oliver Kiddle1-0/+1
compstate[insert] is emptied
2016-11-0539829: when compstate[insert] is emptied by the completion function and ↵Oliver Kiddle1-2/+8
AUTO_MENU is set, start menu completion on the second tab press rather than the third
2016-11-0339805: internal: Document some compadd internals.Daniel Shahaf1-2/+10
2016-11-0339802: internal: Document and simplify multiquote().Daniel Shahaf1-5/+17
The code simplifications take advantage of the fact that all callers pass either 0 or 1 for 'ign'. The tildequote() text is from workers/39271.
2016-09-2039383: compadd: Restrict previous patch to the case where $PREFIX includes ↵Daniel Shahaf1-2/+4
characters both from the -P prefix and from the (unprefixed) candidate completion word.
2016-09-2039372: compadd: Match -P prefix all-or-nothing rather than greedily.Daniel Shahaf1-4/+7
2016-09-1139252: internal: quotestring: Drop the 'e' parameter, which no caller uses.Daniel Shahaf1-1/+1
2016-03-0738043: allow any completion widget to cycle matches for menu completion to ↵Oliver Kiddle1-7/+1
fix reverse menu completion
2015-07-0635704: compadd -E 0 should imply -J and -2Oliver Kiddle1-2/+2
2015-06-2935627: make reverse-menu-complete start with the last match inOliver Kiddle1-4/+2
menu selection
2015-05-2335127#1: Fix _describe/compdescribe problem with unsorted groupsDaniel Shahaf1-4/+5
2015-01-09Rearrange context saving.Peter Stephenson1-2/+2
Variables are now associated with the module that declares them, being initialised and saved/restored there. However, as many variables are used for communication between modules, many of them are set in multiple places, so the assignment is ambiguous.
2015-01-0634115: compcore: Fix size argument to zfreeMikael Magnusson1-1/+1
Found by Coverity (Issue 1255852), has no impact unless using --enable-zsh-mem, and even then it is minimal.
2014-12-1133876: etc.: Separate errors and keyboards interruptsPeter Stephenson1-1/+1
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.
2014-10-0233320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completionBarton E. Schaefer1-0/+2
add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
2014-01-2832303: simplistic completion after $x:Peter Stephenson1-0/+14
2013-10-2431882: Insulate completion widget against environment.Peter Stephenson1-4/+1
Prevents change in pipestatus leaking back out.
2012-02-0930193: remnulargs() after poking into string in case length changesBart Schaefer1-1/+1
2011-08-0329644: work around _describe bug, plus cosmetic tweaksPeter Stephenson1-1/+2
2011-06-1929491: remove some variables set but not usedPeter Stephenson1-4/+2
2011-06-0429459: Further fixes for parameter flag completion,Peter Stephenson1-2/+4
plus drive-by fix for double-quoted parameter completion with flags
2011-06-0329452: allow completion of parameter flagsPeter Stephenson1-3/+13
2011-05-1429268: extra dupstring() for value to be used in completion match groupPeter Stephenson1-1/+1
2011-05-1429267: add -enable-zsh-debug and use for debugging completion matcher groupsPeter Stephenson1-0/+31
2011-02-1828772: Update regions in region highlight dynamicallyPeter Stephenson1-6/+2
2010-12-14lexsave/lexrestore lexflagsPeter Stephenson1-2/+2
add new LEXFLAGS_ZLE