Maxime de Roucy
cdd9402224
Avoid invalid access with isearch in completion list
2017-07-04 09:38:23 +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
Barton E. Schaefer
364c4047e7
39725: more metafication of patterns.
2016-10-25 12:45:51 -07:00
Peter Stephenson
39ae9cd10a
39723: metafy string passed to pattern in complist.
...
Also additional safety tokenizing a string with Meta characters.
2016-10-25 11:53:49 +01:00
Peter Stephenson
6f071b2309
39715: Handle multibyte characters in complist listing
2016-10-23 21:32:58 +01:00
Oliver Kiddle
8c29b34032
38043: allow any completion widget to cycle matches for menu completion to fix reverse menu completion
2016-03-07 13:15:40 +01:00
Barton E. Schaefer
f07a1bd009
37961: fix crash on bad memory access
...
In interactive menuselection, use of "compadd -x" (e.g. the "warnings"
zstyle) may have replaced the completion list, so skip highlighting of
the current selection until a subsequent keystroke has regenerated the
original listing
2016-02-14 11:13:17 -08:00
Barton E. Schaefer
1b923f69c7
37927: recreate local keymaps as necessary in case the user has deleted them
2016-02-13 12:51:12 -08:00
Jun-ichi Takimoto
a4020e10a3
37868: add 'static' to file local variables
2016-02-03 01:25:33 +09:00
Peter Stephenson
1d8b528522
37643: Reset interrupt on key input in menu selection.
...
We don't need to propagate the interrupt further as the interrupt
causes the key to be empty, which will exit the widget. We
need to reset the condition as zrefresh() is now more sensitive
to errors since 36416 / 32f5d3d8
.
2016-01-15 12:49:42 +00:00
Peter Stephenson
d45a68c546
36974: fix some functions with empty argument lists
2015-10-27 09:28:36 +00:00
Peter Stephenson
f9d7651c25
36682: expand pattern interface to optimise unmetafication
2015-09-28 20:31:51 +01:00
Barton E. Schaefer
50721a1986
36641: fix multibyte handling in incremental search during menu selection
2015-09-26 13:46:20 -07:00
Mikael Magnusson
6e7ecb35a0
unposted: typo in comment
2015-09-06 12:35:14 +02:00
Barton E. Schaefer
a1f8d4ffc7
35826: add getsparam_u() to return unmetafied string, use it for a number of references to non-special params
2015-07-22 12:52:24 -07:00
Oliver Kiddle
44c56f3af5
35627: make reverse-menu-complete start with the last match in
...
menu selection
2015-06-29 01:54:44 +02:00
Oliver Kiddle
fbc97e72e8
35623: fix menu-selection where initial selection
...
would not be displayed without scrolling
2015-06-29 01:46:39 +02:00
Jun-ichi Takimoto
0d7be4af0d
35550: fix backspace in interactive menu-select
2015-06-25 00:23:25 +09:00
Oliver Kiddle
98687fa1de
35474, 35492: support the bracketed paste mode of newer terminal emulators
2015-06-19 00:15:38 +02:00
Oliver Kiddle
0a0ba5e664
35487, 35496: don't reinstate previous incremental search string
...
when search direction changes
2015-06-19 00:01:42 +02:00
Peter Stephenson
f1923bdfa6
Add non-metafied character length handling.
...
Use this in regex module and add test using $'\ua0'.
Rename mb_metacharinit() to mb_charinit() as it does not involve
metafied characters.
2015-06-12 09:30:39 +01:00
Jun-ichi Takimoto
152b797596
34144: allocate origline by ztrdup(), not by dupstring()
...
If origline is allocated in heap, it will have been freed
when menuselect() is called directly as a widget.
2015-01-07 21:48:28 +09:00
Mikael Magnusson
8035794a56
34119: complist: Fix leak of string in clnicezputs
...
Found by Coverity (Issue 1255808).
2015-01-06 23:47:05 +01:00
Jun-ichi Takimoto
fe51f39dad
33978: avoid infinite loop in interactive mode
...
Update command line when accept-and-hold is called in the
interactive mode of menu select.
2014-12-18 03:49:51 +09:00
Oliver Kiddle
0d4b548d1e
33818: fix types passed to sizeof detected by coverity as being wrong
2014-11-30 23:19:55 +01:00
Barton E. Schaefer
691547cda6
33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops
...
Two semi-related patches for keyboard interrupt handling in completion,
most importantly so that unexpectedly long completion listings can be
interrupted.
2014-10-29 08:45:57 -07:00
Oliver Kiddle
b5fcc04f0e
32436: allow = to be used in ZLS_COLORS patterns if it is quoted or inside parentheses
2014-03-03 11:57:56 +01:00
Barton E. Schaefer
1584318b97
32283: fix crash in menu selection when number of terminal lines is small
2014-01-18 12:32:21 -08:00
Peter Stephenson
84f8330e0d
users/16375: initialise nrefs on each loop in match tests
2011-09-18 17:44:12 +00:00
Peter Stephenson
962624e8c3
29491: remove some variables set but not used
2011-06-19 16:26:10 +00:00
Peter Stephenson
506615ff94
29267: add -enable-zsh-debug and use for debugging completion matcher groups
2011-05-14 00:07:41 +00:00
Peter Stephenson
d89361739a
29165: use term.h globally if needed at all.
2011-05-09 09:49:08 +00:00
Bart Schaefer
ecb32c6b12
Jun T.: 29031: increment global minfo state when inserting characters
...
on the line during interactive menu selection.
2011-04-24 19:10:20 +00:00
Peter Stephenson
afc3a7c412
28202: unmetafy line for reversemenucomplete
2010-08-31 18:09:15 +00:00
Peter Stephenson
c969dea22f
27441: add "sa" for suffix alias completion highlighting
2009-11-30 17:26:47 +00:00
Peter Stephenson
55e4beb8d8
27085: add accept-search handling to scrollist keymap
2009-07-01 17:09:37 +00:00
Peter Stephenson
88d07936a2
27080: it wasnt possible to exit menu selection cleanly
2009-07-01 13:41:18 +00:00
Peter Stephenson
52bb631ccb
26373: initialise variable in menu completion in attempt to prevent crash
2009-01-20 10:42:08 +00:00
Bart Schaefer
16e75d6978
25389: rearrange precedence of ZLS_COLORS alternatives.
2008-08-06 02:21:01 +00:00
Peter Stephenson
5527851061
25266: always use EXTENDED_GLOB for patterns in ZLS_COLORS
2008-07-05 19:55:29 +00:00
Peter Stephenson
9533b19dad
25051: add colour sequences to formatting strings in completion
2008-05-16 09:37:56 +00:00
Peter Stephenson
ea09bb1cef
25006, 25009: fix "or" orphaned symlink highlighting
...
fix ordering of statd versus extension and pattern highlight tests
2008-05-12 16:49:59 +00:00
Peter Stephenson
dbe5fd93a7
24951: implement ZLS_COLORS ln=target
2008-05-06 16:01:18 +00:00
Peter Stephenson
2cec7aae44
24861 (with tweaks): logic to use alternative wcwidth() if needed;
...
slightly improve test for overwriting with combining characters.
2008-04-22 15:08:04 +00:00
Peter Stephenson
b8ec06c870
24853: use metafied strings for inner loops over history
2008-04-20 21:17:29 +00:00
Andrey Borzenkov
79ea3a1717
24851: support colour codes for from current GNU ls
2008-04-20 06:41:22 +00:00
Peter Stephenson
97dcf15556
24808: initial support for combining characters in zle
2008-04-13 16:58:42 +00:00
Peter Stephenson
af92f874e1
24777: bug clearing up after menu selection
2008-03-28 23:21:26 +00:00
Peter Stephenson
bc45a1b994
24672: fix(?) crash resizing window during menu-select
2008-02-28 23:12:37 +00:00
Peter Stephenson
ac0756270c
24554: reduce accumulated memory listing in completion listing
...
make file static be used as such instead of as a pretend parameter
2008-02-15 22:01:01 +00:00