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
Peter Stephenson
c81ba09d8f
27218: don't unquote $line generated in comparguments for _arguments
2009-08-17 21:06:03 +00:00
Peter Stephenson
207acdfe89
27211: handle Cygwin device files & drives specially in compfiles
2009-08-05 10:14:53 +00:00
Peter Stephenson
85c513894d
26047: convert lower levels of completion matching to use
...
multibyte strings and wide characters
2008-11-15 21:27:45 +00:00
Peter Stephenson
d41c6098b4
25989: fix crash in matching
2008-11-02 17:36:26 +00:00
Clint Adams
031dd01cf2
25940: delay !multi memory allocation until after possibility to error out and return without freeing.
2008-10-29 01:33:23 +00:00
Peter Stephenson
7f470ebcb0
25912: fix another metafication bug in completion
...
and remove lies about matchers
2008-10-18 19:16:24 +00:00
Clint Adams
4622e326bd
25897: remove small bit of dead code in cfp_opt_pats.
2008-10-14 22:09:11 +00:00
Clint Adams
7ff2b823a9
25737: remove dead code in ca_parse_line.
2008-09-23 20:57:40 +00:00
Clint Adams
430a7535fa
25666: free memory allocated for an xor if the argument number is invalid.
2008-09-14 07:34:46 +00:00
Peter Stephenson
bb68ee8db7
25138(? mailing list stuck): rewrite of completion matching.
...
Will one day use multibyte/wide characters, doesn't yet.
2008-06-08 17:53:53 +00:00
Peter Stephenson
db717e3025
users/12699: don't complete normal arguments where we're completing the
...
required argument to an option in the word following the option
2008-03-07 23:06:42 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
4d52b7ebe6
23670: rationalise some linked list functions
2007-06-27 13:56:10 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
19dccc355a
23363: fake-files now allows patterns
2007-05-01 09:29:35 +00:00
Peter Stephenson
c53aa4adee
unposted; typo
2007-01-21 22:49:56 +00:00
Peter Stephenson
553e011320
23118: improve sorting to make it work with locales
2007-01-21 22:47:36 +00:00
Andrey Borzenkov
9d8c3eb74d
22831: use CM_SPACE in compdescribe
2006-10-07 08:05:03 +00:00
Peter Stephenson
289b14113b
22819: improved internal use of string quotation,
...
plus completion bug fix with RCQUOTES
2006-10-05 21:53:26 +00:00
Peter Stephenson
966ff3a185
22780: add _arguments/comparguments -n to set index of first non-option arg
2006-09-27 16:53:58 +00:00
Andrey Borzenkov
71fa876def
22761: fix compdescrie for multibyte characters
2006-09-23 14:43:57 +00:00
Peter Stephenson
4f11c3b8e3
22729: trunction in computil.c did't handle multibyte characters
2006-09-17 19:23:38 +00:00
Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +00:00
Wayne Davison
4cb83571c4
Changed some structures to avoid gcc's type-punned warnings.
2006-03-07 21:30:36 +00:00
Wayne Davison
5c8bb4944d
Replaced a flawed look-behind algorithm for backslash detection
...
with one that looks forward (avoiding an accidental quoting of a
char after a "\\" sequence).
2006-02-13 11:06:21 +00:00