Eitan Adler
6a3b23e9cc
42939: pm argument to set_registers is not unused
2018-06-06 09:33:28 +01:00
Jun-ichi Takimoto
1a97dcbed1
42870: another improvement of 'compset -q'
...
zlemetall need not count the 'x' added at the cursor in set_comp_sep()
2018-05-31 21:07:53 +09:00
Jun-ichi Takimoto
e5f356a95e
42809: slightly improve 'compset -q'
2018-05-25 21:11:20 +09:00
Oliver Kiddle
f0c2cf8607
42760: move stack variable outside while loop scope as it is accessed in the while condition
2018-05-13 09:51:05 +02:00
dana
eeeba19c96
42185: safety when removing separators in completion
2018-05-11 09:33:05 +01:00
Peter Stephenson
c8ceb66ba3
42751: Protect shell status in ZLE timed function handler.
...
Otherwise status from sched and other asynchronous functions
could escape back to the main shell.
2018-05-08 10:18:19 +01:00
Oliver Kiddle
8e6c1d8b47
42605: properly free the vi registers hash
2018-04-07 18:52:37 +02: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
Oliver Kiddle
259ac472ea
42519, CVE-2018-1083: check bounds on PATH_MAX-sized buffer used for file completion candidates
2018-03-24 15:04:39 +01:00
Jun-ichi Takimoto
e4a8069b32
42501: avoid out of bound pointer (as 42487)
2018-03-24 15:22:10 +09:00
Peter Stephenson
bc349023aa
42487: Fix pointer problems in compctl.
...
Pointing off the front of a string caused warnings with
gcc 7.3.0 and is somewhat murky C anyway.
2018-03-21 10:29:22 +00:00
Peter Stephenson
1d6954bd2f
23180: Fix expand-or-complete with ~[...].
...
The square brackets shouldn't be treated as wildcards.
2018-02-26 21:43:12 +00:00
dana
1af28cbfd7
42164: fix digits in format escapes in completion listings
2018-01-04 17:16:18 +00:00
dana
932ed86483
dana: 42145: Fix additional completion cases with option arguments.
2017-12-20 09:07:28 +00:00
Jun-ichi Takimoto
dae5d1d5ba
42412: fix a bug in 42116
...
Also fix a few widgets which were calling wrong function when negative
numeric argument was given.
2017-12-18 23:49:31 +09:00
Jun-ichi Takimoto
5f33a93afb
42116: multibyte support for ZLE vi-mode word motion
2017-12-18 12:48:25 +09: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
233c0e8903
41835: handle multibyte characters with compset -p and -s
2017-10-11 01:23:42 +02: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
Peter Stephenson
85b0dd7133
Updates for ksh array element syntax.
...
Move detection of key/value pairs down into prefork().
Detect normal array assignment and [key]=val array assignemnt
separately. Mark key / value pairs with Marker and pass up flag. Deal
with marked triads specially later on.
2017-09-24 17:33:07 +01:00
Maxime de Roucy
cdd9402224
Avoid invalid access with isearch in completion list
2017-07-04 09:38:23 +01:00
Peter Stephenson
e19955614f
41368: Add missing unqueue_signals() to compctl.
2017-06-27 10:12:55 +01:00
Barton E. Schaefer
efae75f648
41242: zstrbcmp(...) removed in favor of zstrcmp(..., SORTIT_IGNORING_BACKSLASHES)
...
This should make sorting consistent in completion listings vs. elsewhere.
2017-06-17 10:25:43 -07:00
Stephane Chazelas
4d007e269d
41275: Leave stdin open when executing widgets
2017-06-13 21:34:55 -04:00
Peter Stephenson
d5c22d356b
41244: Add zmodload -s option.
...
Doesn't complain if module is unavailable, but prints more
obscure errors.
Use existing low-level silent flag by passing through
intermediate module loading hierarchy.
2017-06-12 10:10:23 +01:00
Peter Stephenson
a6135f6114
41191: Check for immortal thingies when checking for specific thingies
2017-06-01 17:56:14 +01:00
Jun-ichi Takimoto
171e7fa4c1
41090: Replace iswprint() if unicode9 is enabled.
...
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09: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
Peter Stephenson
67c5d83df3
40702: new KEYS_QUEUED_COUNT ZLE variable
2017-03-03 10:18:46 +00:00
Barton E. Schaefer
6557aa4710
40469: change strategy from 40453 to use patcompile(PAT_HEAPDUP) instead of signal queueing.
2017-01-30 08:03:47 -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
Peter Stephenson
34656ec2f0
40305: fix some problems redisplaying command line after interrupt.
...
Back off previous fix as this only covered some subset of problems.
Remaining problems happend after reset-prompt in TRAPINT.
One was in complist and is fixed by not attempting to list after
an error or interrupt.
The other was owing to not resetting clearflag when ZLE
was re-entered.
2017-01-10 19:18:52 +00:00
Peter Stephenson
48cadf48ff
40285: Be more careful with pattern allocation in history isearch.
...
If there are ZLE hooks to be called, they may use patterns, in
which case it's not safe to allocate the isearch pattern in the
static buffer.
2017-01-06 17:42:13 +00: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
Barton E. Schaefer
efd3baf2a2
40134: silence spurious compiler warnings.
2016-12-10 19:13:53 -08:00
Oliver Kiddle
8c4e1b6832
40129: revert 39611, add code comments and test cases for _arguments
2016-12-09 00:00:30 +01:00
Daniel Shahaf
fd2ca229dd
40067: internal: Document 'cmatcher', parse_cmatcher(), 'comptoend', unsetparam_pm(), and getindex().
2016-12-03 09:54:11 +00:00
Peter Stephenson
e8df1c7056
40043: fix computil.c indentation (cosmetic)
2016-11-30 16:19:21 +00:00
Eitan Adler
110ffae9fe
40035: Cosmetic fixes for comments and documentation.
...
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Peter Stephenson
32daf2a0aa
40026: Fix for completion after redirection.
...
This could get confused about where we were in the command
line word array e.g. after the > of "!> .". Also take more care
if does confused, with debug output. Also neaten up one
obscure test.
2016-11-29 17:08:56 +00:00
Oliver Kiddle
2e44ac72f6
unposted: fix to compile on Solaris where curses.h has a #define for reg to register
2016-11-24 16:11:52 +01:00
Oliver Kiddle
3570172d3b
40003: include "0-"9 vi buffers in the registers associative array
2016-11-24 16:05:00 +01:00
Bart Schaefer
c0f95d07e7
unposted: clear ERRFLAG_ERROR before invoking immortal widget (cf. 39934)
...
Updates commit cbb9ca3d
2016-11-23 18:15:17 -08:00