summaryrefslogtreecommitdiff
path: root/Src/Zle/computil.c
AgeCommit message (Collapse)AuthorFilesLines
2025-01-3053335: Remove unused dupstring_glen() functionOliver Kiddle1-9/+4
Also make use of the dupstring_wlen() variant in more places to avoid a strlen()
2023-10-1651490: Use time_t for lastt which stores result of time(0)Mikael Magnusson1-2/+2
Coverity complained about this, and possibly some more people would in 15 years
2022-06-0350325: revert 38150 and fix in calling function cfp_matcher_range() insteadBart Schaefer1-1/+1
2021-12-1649653: fix array indexing issue introduced with 49518 due to using decimal ↵Oliver Kiddle1-3/+5
rather than hex 20 Also avoid comparing the current word against all options when the word doesn't start with - or +.
2021-12-1449518: fix exclusions for mixed - and + stacked optionsOliver Kiddle1-10/+29
2021-10-2349499 based on 49496 by Jun T.: fixes to option -A of _argumentsOliver Kiddle1-8/+19
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 Shahaf1-2/+2
hlinklist2array(). Will be used in the next commit.
2020-01-0945269: Fix misspellings in completions and elsewhere.Jens Schleusener1-1/+1
2018-11-0943793: computil could overrun bufferKamil Dudka1-2/+2
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-2442501: avoid out of bound pointer (as 42487)Jun-ichi Takimoto1-2/+2
2017-12-20dana: 42145: Fix additional completion cases with option arguments.dana1-1/+3
2017-11-0441983: fix exclusion of long options with (-) on a normal argumentOliver Kiddle1-1/+1
2017-10-0741824: fix to not complete rest args from an _arguments set alongside the ↵Oliver Kiddle1-16/+16
argument to and option in a separate set
2017-09-2841772: fix bug in handling of long options with _arguments' -A optionOliver Kiddle1-1/+1
2017-03-0840763: count wide characters and Cmatcher pointers more sanely in ↵Barton E. Schaefer1-6/+13
cfp_matcher_pats(), and count characters in pattern_match() the same way to stay in sync Might not fix wide-char matching in completion matcher-lists but should avoid wild pointer crash
2017-01-2940453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵Barton E. Schaefer1-0/+8
not re-entrant.
2017-01-1540362: Fix setting of parameter values in compvaluesPeter Stephenson1-2/+2
2017-01-1140321: _arguments option groupsOliver Kiddle1-71/+120
2017-01-0540269: handle option exclusion within current word for clumped optionsOliver Kiddle1-13/+13
This replaces the change made in 13999 with an alternative approach.
2017-01-0440227: handle _arguments sets and rest arguments starting with a dashOliver Kiddle1-11/+26
This is a new approach to the problem first covered by 39611: checking to see if an option-like argument belongs to one of the other sets.
2017-01-0440226: tidy up some of the _arguments set codeOliver Kiddle1-70/+29
Remove old code for applying explicit exclusions between sets which fixes some odd behaviour. Some struct members were unused. Also added some comments and test cases.
2016-12-2240162: _arguments support for a match spec in combination with setsOliver Kiddle1-1/+1
2016-12-0940129: revert 39611, add code comments and test cases for _argumentsOliver Kiddle1-33/+58
2016-11-3040043: fix computil.c indentation (cosmetic)Peter Stephenson1-4/+4
2016-10-1639500: compdescribe: perform on-screen-width computation using the "nice" ↵Daniel Shahaf1-9/+10
length, since the matches are rendered by nice*() functions by compadd Remove two "###" question comments relative to the patch posted, since the answer to them is (clearly) negative.
2016-10-1339611: with _arguments sets completion stopped if one of the rest arguments ↵Oliver Kiddle1-1/+2
starts with a dash
2016-10-0339545: Add some missing unqueue_signals().Peter Stephenson1-0/+1
All of these are added simply to fit existing logic in other branches.
2016-09-2339412: Fix directory completion when $PWD:h contains parentheses, which are ↵Daniel Shahaf1-1/+4
interpreted as globbing metacharacters.
2016-09-1139252: internal: quotestring: Drop the 'e' parameter, which no caller uses.Daniel Shahaf1-3/+3
2016-09-0639173: _arguments: Escape colons and backslashes in $opt_args unambiguously.Daniel Shahaf1-3/+9
2016-08-1339026: pattern specified with _arguments' -A option shouldn't be checked ↵Oliver Kiddle1-2/+4
against words after the cursor
2016-08-05workers/38995 (in part): compfiles: Add reverse-engineered documentation ↵Daniel Shahaf1-0/+15
breadcrumbs.
2016-01-3037838: use UNUSED() consistentlyJun-ichi Takimoto1-1/+1
2015-10-2736974: fix some functions with empty argument listsPeter Stephenson1-2/+2
2015-10-2536911: '-optarg' should not match optspec '-opt='Jun-ichi Takimoto1-2/+5
Remove the requirement that -xy= should come before -x= in the list of optspecs passed to _arguments.
2015-07-0535692: cfp_matcher_range used wrong raw characterPeter Stephenson1-1/+1
2015-05-2335127#1: Fix _describe/compdescribe problem with unsorted groupsDaniel Shahaf1-3/+37
2015-01-0634116: computil: Check for NULL before passing to strlenMikael Magnusson1-1/+2
The rest of this function appears to be very careful about checking these, then forgets in this one spot. Found by Coverity (Issue 1255805).
2014-05-0832600: in _arguments, "-" is not an option letter after another "-"m0viefreak1-3/+7
2013-10-0331784: better line width calculation for completion listingsBarton E. Schaefer1-25/+33
When deciding whether there is enough horizontal space to show completion descriptions for each match in a listing, treat the separator as part of the description rather than as part of the match, and account for lines that have already wrapped due to very long matches.
2013-10-0331781: "compdescribe -i" clears the completion list column padding widthBarton E. Schaefer1-0/+1
2013-09-1931737: same loop counter fix in get_cadef as get_cvdef.Barton E. Schaefer1-1/+1
2013-09-1931735: fix off-by-one in completion utility cache code.Axel Beckert1-1/+1
Was causing crashes in complex completions, particularly with taskwarrior
2011-05-13Danek: 29254: fix some compiler warningsPeter Stephenson1-1/+0
2011-05-0929165: use term.h globally if needed at all.Peter Stephenson1-13/+16
2011-04-15Fix compiler warning due to state.doff duplication.Wayne Davison1-1/+1
2010-07-2628102: use lstat() when checking ignore-parentsPeter Stephenson1-3/+12