1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 00:51:05 +02:00
Commit graph

122 commits

Author SHA1 Message Date
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
Oliver Kiddle
68a5a5f453 35704: compadd -E 0 should imply -J and -2 2015-07-06 22:40:47 +02: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
Daniel Shahaf
9fcc105ff6 35127#1: Fix _describe/compdescribe problem with unsorted groups 2015-05-23 10:05:06 +00:00
Peter Stephenson
cfd91eac07 Rearrange context saving.
Variables are now associated with the module that declares them, being
initialised and saved/restored there.  However, as many variables are
used for communication between modules, many of them are set in multiple
places, so the assignment is ambiguous.
2015-01-09 21:33:39 +00:00
Mikael Magnusson
221ecf5010 34115: compcore: Fix size argument to zfree
Found by Coverity (Issue 1255852), has no impact unless using
--enable-zsh-mem, and even then it is minimal.
2015-01-06 23:46:18 +01:00
Peter Stephenson
d067ebcacd 33876: etc.: Separate errors and keyboards interrupts
Combination of 12 commits from interrupt_abort branch.

Basic strategy is to introduce bits to errflag and to set and
reset them separately.

Remove interrupt status on return to main keymap.

Turn off ERRFLAG_INT for always block.

Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.

Add TRY_BLOCK_INTERRUPT

This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.

Ensure propagation of SIGINT from exited job.

If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.

Reset errflag before precmd()

Add always block in _main_completion to fix ZLS_COLORS

Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt.  However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Barton E. Schaefer
57252dc1e0 33320 (cf. PWS 33311): revert 33069, fix lexing of bangchar during completion
add typtab_flags bits (replaces specialcomma boolean) to record any unusual handling of typtab entries; signal safety; make bangchar non-special during completion lexing of the command line.
2014-10-02 08:39:43 -07:00
Peter Stephenson
584ea88811 32303: simplistic completion after $x: 2014-01-28 19:14:30 +00:00
Peter Stephenson
7a5b85292a 31882: Insulate completion widget against environment.
Prevents change in pipestatus leaking back out.
2013-10-24 17:49:37 +01:00
Bart Schaefer
3489c15799 30193: remnulargs() after poking into string in case length changes 2012-02-09 20:12:33 +00:00
Peter Stephenson
4a3ce8ab89 29644: work around _describe bug, plus cosmetic tweaks 2011-08-03 20:57:32 +00:00
Peter Stephenson
962624e8c3 29491: remove some variables set but not used 2011-06-19 16:26:10 +00:00
Peter Stephenson
d7582f006f 29459: Further fixes for parameter flag completion,
plus drive-by fix for double-quoted parameter completion with flags
2011-06-04 21:32:06 +00:00
Peter Stephenson
d292edc4dc 29452: allow completion of parameter flags 2011-06-03 22:06:59 +00:00
Peter Stephenson
f61ae85acf 29268: extra dupstring() for value to be used in completion match group 2011-05-14 00:36:06 +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
212ca9edf9 28772: Update regions in region highlight dynamically 2011-02-18 22:08:45 +00:00
Peter Stephenson
ebcead7543 lexsave/lexrestore lexflags
add new LEXFLAGS_ZLE
2010-12-14 10:35:38 +00:00
Peter Stephenson
eab4f9a83c 28528: Rearrange zleparse to lexflags
Add (z+n+)
2010-12-14 09:59:04 +00:00
Peter Stephenson
3e97b749f4 28486: $compstate[parameter] needs untokenizing 2010-12-06 10:49:51 +00:00
Peter Stephenson
a5a27ad5ec <hamer@hamer.org.ua>: 28104: fix completion crash due to NULL pointer.
Actually commit the code.
2010-07-29 11:08:28 +00:00
Peter Stephenson
0cf040f4bf Back off 26270 (accept-and-menu-complete).
Was causing memory corruption
2009-01-13 12:19:53 +00:00
Andrey Borzenkov
1a43616975 26270: allow accept-and-menu-complete work with _vallues as well 2009-01-09 20:54:35 +00:00
Peter Stephenson
b2d08a2155 25744: dynamic named directories and further doshfunc() simplification 2008-09-26 09:11:27 +00:00
Peter Stephenson
2920c227d3 25677: add %x and %I prompt escapes for shell source code debugging
tidy up interface to doshfunc()
2008-09-16 15:02:01 +00:00
Peter Stephenson
11715a9cd8 25267: ambiguous pattern matching fix: missing log
25269: Frank Terbeck: typo
2008-07-07 08:33:27 +00:00
Peter Stephenson
cd56448c8e 25267: fix problem with menu on ambiguous completion without matching 2008-07-06 20:04:27 +00:00
Peter Stephenson
dbe5fd93a7 24951: implement ZLS_COLORS ln=target 2008-05-06 16:01:18 +00:00
Peter Stephenson
97dcf15556 24808: initial support for combining characters in zle 2008-04-13 16:58:42 +00:00
Peter Stephenson
9cfdf38906 24127: bug in matcher specs with left anchor and partial words 2007-11-28 21:14:14 +00:00
Peter Stephenson
4d52b7ebe6 23670: rationalise some linked list functions 2007-06-27 13:56:10 +00:00
Peter Stephenson
553e011320 23118: improve sorting to make it work with locales 2007-01-21 22:47:36 +00:00
Peter Stephenson
94bdf92a06 23097: splitting of $'...' strings in completion 2007-01-08 22:05:54 +00:00
Peter Stephenson
1cac90759a 23036: three more fixes for completion using $'...' 2006-12-08 18:52:04 +00:00
Peter Stephenson
34381548da Incomplete improvements for $'...' in completion 2006-12-03 21:07:17 +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
f5bbc619bd 22565: Fix bug after failed menucompletion with accept-and-menu-complete? 2006-07-30 19:58:31 +00:00
Peter Stephenson
4a67f24798 22544: Improve use of ztype tests for multibyte characters. Add
POSIX_IDENTIFIERS option to control allowability of multibyte
alphanumeric characters in parameter and module names.
2006-07-10 13:08:22 +00:00
Peter Stephenson
e17fc50793 22328, modified: add -o option to compadd
add _list_files helper to handle new file-list style for _path_files
2006-03-07 12:50:56 +00:00
Wayne Davison
4b9d1c4f5c Optimized away a recently-added call to strlen(). 2006-02-20 05:51:49 +00:00
Wayne Davison
6c31a7dc68 Made the realocation of the line buffer in add_match_data() use a
little more optimal size.  Also tweaked the code just a little.
2006-02-19 22:57:56 +00:00
Wayne Davison
1e2f61f116 The code in add_match_data() that looks for invalid characters
now properly parses the string as metafied.
2006-02-18 18:39:38 +00:00
Wayne Davison
a6658fb9f6 Made add_match_data() look for invalid multibyte chars in the
names and substitute $'\123' sequences for them.
2006-02-13 11:03:59 +00:00
Wayne Davison
e79af955f0 Got rid of some unsigned-char/char pointer casts. 2005-11-15 08:44:17 +00:00
Peter Stephenson
3c37057c34 21871: replace INULL() by inull() 2005-10-13 16:30:13 +00:00
Andrey Borzenkov
a6ebb7bfc3 21664: unmetafy ztat() argument 2005-08-18 18:19:29 +00:00
Andrey Borzenkov
11b0963bdc 21642: remove redundant checks 2005-08-16 17:25:48 +00:00
Wayne Davison
fb047b6ffa Moved declaration of char pointer var to comply with
restrictions of standard C.
2005-08-16 01:59:43 +00:00
Clint Adams
3c92ad4b90 21631: make sure an unmetafied string is passed to ztat to determine file type. 2005-08-16 00:51:57 +00:00