1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00
Commit graph

166 commits

Author SHA1 Message Date
Bart Schaefer
3e3cfabcc7 50325: revert 38150 and fix in calling function cfp_matcher_range() instead 2022-06-03 20:08:15 -07:00
Oliver Kiddle
6b763233b2 49653: fix array indexing issue introduced with 49518 due to using decimal rather than hex 20
Also avoid comparing the current word against all options when the word
doesn't start with - or +.
2021-12-16 14:27:59 +01:00
Oliver Kiddle
7cb980b536 49518: fix exclusions for mixed - and + stacked options 2021-12-14 12:30:55 +01:00
Oliver Kiddle
e40938c128 49499 based on 49496 by Jun T.: fixes to option -A of _arguments 2021-10-23 18:21:24 +02:00
Daniel Shahaf
deca7c9285 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.
Also, write/extend docstrings for sepjoin() and zjoin().
2020-05-03 01:27:36 +00:00
Daniel Shahaf
4d2bcf2fe7 45729: internal: Add a second parameter to zlinklist2array(), analogously to hlinklist2array().
Will be used in the next commit.
2020-05-03 01:27:36 +00:00
Jens Schleusener
11dbe4c286 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
Kamil Dudka
031afe4207 43793: computil could overrun buffer 2018-11-09 10:57:09 +00:00
Oliver Kiddle
4044d73706 42600: error paths for _values leaked the exclusion list array 2018-04-07 14:37:46 +02:00
Oliver Kiddle
25da576c29 42575: fix to not complete options in the argument to another option 2018-04-05 11:14:58 +02:00
Jun-ichi Takimoto
e4a8069b32 42501: avoid out of bound pointer (as 42487) 2018-03-24 15:22:10 +09:00
dana
932ed86483 dana: 42145: Fix additional completion cases with option arguments. 2017-12-20 09:07:28 +00:00
Oliver Kiddle
1bfcff129d 41983: fix exclusion of long options with (-) on a normal argument 2017-11-04 00:57:48 +01:00
Oliver Kiddle
12902206b7 41824: fix to not complete rest args from an _arguments set alongside the argument to and option in a separate set 2017-10-07 22:35:59 +02:00
Oliver Kiddle
80a02c10aa 41772: fix bug in handling of long options with _arguments' -A option 2017-09-28 09:31:35 +02:00
Barton E. Schaefer
071017965f 40763: count wide characters and Cmatcher pointers more sanely in 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-03-08 21:26:55 -08:00
Barton E. Schaefer
e51c9c17af 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is not re-entrant. 2017-01-29 08:30:14 -08:00
Peter Stephenson
ebd7fdd932 40362: Fix setting of parameter values in compvalues 2017-01-15 17:15:04 +00:00
Oliver Kiddle
b6082cd1e2 40321: _arguments option groups 2017-01-11 20:50:02 +01:00
Oliver Kiddle
c2b7c5abbe 40269: handle option exclusion within current word for clumped options
This replaces the change made in 13999 with an alternative approach.
2017-01-05 13:31:13 +01:00
Oliver Kiddle
8be732cbcc 40227: handle _arguments sets and rest arguments starting with a dash
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-04 14:50:56 +01:00
Oliver Kiddle
a69b19d215 40226: tidy up some of the _arguments set code
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.
2017-01-04 14:42:39 +01:00
Oliver Kiddle
02eb1595e8 40162: _arguments support for a match spec in combination with sets 2016-12-22 16:12:42 +01:00
Oliver Kiddle
8c4e1b6832 40129: revert 39611, add code comments and test cases for _arguments 2016-12-09 00:00:30 +01:00
Peter Stephenson
e8df1c7056 40043: fix computil.c indentation (cosmetic) 2016-11-30 16:19:21 +00:00
Daniel Shahaf
a8754b63fc 39500: compdescribe: perform on-screen-width computation using the "nice" 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-16 12:40:58 +00:00
Oliver Kiddle
7b3ec54ebe 39611: with _arguments sets completion stopped if one of the rest arguments starts with a dash 2016-10-13 10:03:13 +02:00
Peter Stephenson
4ab3fcc90d 39545: Add some missing unqueue_signals().
All of these are added simply to fit existing logic in other branches.
2016-10-03 13:43:20 +01:00
Daniel Shahaf
0e01942c07 39412: Fix directory completion when $PWD:h contains parentheses, which are interpreted as globbing metacharacters. 2016-09-23 06:29:59 +00:00
Daniel Shahaf
f368720b8b 39252: internal: quotestring: Drop the 'e' parameter, which no caller uses. 2016-09-11 09:22:18 +00:00
Daniel Shahaf
73c0e8d4e6 39173: _arguments: Escape colons and backslashes in $opt_args unambiguously. 2016-09-06 23:48:10 +00:00
Oliver Kiddle
f760bd6064 39026: pattern specified with _arguments' -A option shouldn't be checked against words after the cursor 2016-08-13 01:32:31 +02:00
Daniel Shahaf
81409caee7 workers/38995 (in part): compfiles: Add reverse-engineered documentation breadcrumbs. 2016-08-05 12:43:57 +00:00
Jun-ichi Takimoto
ca3bc0d95d 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
Peter Stephenson
d45a68c546 36974: fix some functions with empty argument lists 2015-10-27 09:28:36 +00:00
Jun-ichi Takimoto
a40417929c 36911: '-optarg' should not match optspec '-opt='
Remove the requirement that -xy= should come before -x= in the
list of optspecs passed to _arguments.
2015-10-25 23:42:03 +09:00
Peter Stephenson
26d5d2eeac 35692: cfp_matcher_range used wrong raw character 2015-07-05 18:52:00 +01:00
Daniel Shahaf
9fcc105ff6 35127#1: Fix _describe/compdescribe problem with unsorted groups 2015-05-23 10:05:06 +00:00
Mikael Magnusson
c935381479 34116: computil: Check for NULL before passing to strlen
The rest of this function appears to be very careful about checking these,
then forgets in this one spot. Found by Coverity (Issue 1255805).
2015-01-06 23:45:51 +01:00
m0viefreak
f5fe52c495 32600: in _arguments, "-" is not an option letter after another "-" 2014-05-08 14:24:31 +01:00
Barton E. Schaefer
75fdec17b1 31784: better line width calculation for completion listings
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-03 15:59:52 -07:00
Barton E. Schaefer
ea30fdaf25 31781: "compdescribe -i" clears the completion list column padding width 2013-10-03 14:52:54 -07:00
Barton E. Schaefer
61deff76f2 31737: same loop counter fix in get_cadef as get_cvdef. 2013-09-19 07:55:53 -07:00
Axel Beckert
844e569b63 31735: fix off-by-one in completion utility cache code.
Was causing crashes in complex completions, particularly with taskwarrior
2013-09-19 09:45:45 +01:00
Peter Stephenson
9c0a19669b Danek: 29254: fix some compiler warnings 2011-05-13 18:12:05 +00:00
Peter Stephenson
d89361739a 29165: use term.h globally if needed at all. 2011-05-09 09:49:08 +00:00
Wayne Davison
c06f5b4556 Fix compiler warning due to state.doff duplication. 2011-04-15 14:56:53 +00:00
Peter Stephenson
278a892888 28102: use lstat() when checking ignore-parents 2010-07-26 14:00:46 +00:00
Peter Stephenson
ec46ff026e users/14732: Test X:/ rather than X: in Cygwin 2010-01-22 20:42:09 +00:00
Bart Schaefer
6c48ef6b45 27415: Src/Zle/computil.c: comparguments "*::..." descriptions could step
on sequentially earlier descriptions when completing for a word other than
the last word on the command line.
2009-11-21 06:51:14 +00:00