Jens Schleusener
11dbe4c286
45269: Fix misspellings in completions and elsewhere.
2020-01-09 13:42:02 +00:00
Peter Stephenson
ae58388619
44997: GLOB_COMPLETE fix for compctl file completion.
...
Dashes could cause problems in directory prefixes.
2019-12-10 10:32:48 +00:00
Peter Stephenson
b8dc5a7f6d
44435: Handling digita arguments for :h and :t.
...
Pick number of leading or trailing path components to substitute.
Active in history, brace parameters, glob qualifiers.
Add tests for all three environments.
2019-06-20 11:13:05 +01:00
Peter Stephenson
fe228c5984
44202: Rewrite to use memmove() for possibly overlapping copy
2019-04-10 09:31:41 +01:00
Peter Stephenson
232b43571f
43969: untokenize Dash for compctl with GLOB_SUBST set
2019-01-03 13:51:19 +00: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
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
e19955614f
41368: Add missing unqueue_signals() to compctl.
2017-06-27 10:12:55 +01: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
a62e1640bc
39958: Add extra byte to PATH_MAX allocations.
...
This ensures we've got enough space for a null, although this
isn't always needed.
2016-11-17 19:49:17 +00:00
Peter Stephenson
99f74d6c0a
unposted: Update findcmd() in Zle.
...
Unfinished business from previous patch.
2016-09-29 14:19:17 +01:00
Daniel Shahaf
f368720b8b
39252: internal: quotestring: Drop the 'e' parameter, which no caller uses.
2016-09-11 09:22:18 +00:00
Jun-ichi Takimoto
ca3bc0d95d
37838: use UNUSED() consistently
2016-01-30 00:26:23 +09:00
Peter Stephenson
830d54e629
37092: make nested ${(P)name} properly refer to parameter on return
2015-11-11 18:04:20 +00: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
Peter Stephenson
c6c9f5daf2
34322: bug with interface to parsestr() etc.
...
Was showing up in places like ${(e)...} where command substitution
could reallocate the token string, but actually there was never any
guarantee that the lexer wouldn't do that, so this was always
a bit iffy.
2015-01-18 22:38:57 +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
38dc59907b
34120: compctl, jobs: Check contents instead of array
...
text is an array in the struct, and can never be null.
Found by Coverity (Issue 1255780).
2015-01-06 23:51:01 +01:00
Mikael Magnusson
ea6bb993e9
34104: compctl: Remove pointless check
...
cc has already been derefed a bunch of times leading up to here. Found
by Coverity (Issue 1255841).
2015-01-06 23:46:31 +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
Peter Stephenson
15222bcdcb
Fix some compiler warnings in Zle
2014-09-30 09:58:19 +01:00
Miles Ohlrich
22ee3a4fd9
32958: bitwise logic fix
2014-08-04 14:35:10 -07:00
Barton E. Schaefer
3882c30f80
32340: improve error messages for "read -c" / "read -l"
2014-02-02 13:28:41 -08:00
Bart Schaefer
fa7c51971d
31272: Avoid double free, get_compctl should not free its arguments.
2013-04-20 08:40:18 -07:00
Mikael Magnusson
72cb7cfc6f
29307, 29308 + replies: Fix some doubled words in docs and comments.
2011-05-19 16:10:46 +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
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
Clint Adams
4b39a04c14
26027: free pprogc before it goes out of scope in makecomplistflags.
2008-11-11 19:36:34 +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
91b9f3d786
23900: Better handling of NO_EQUALS in old completion
2007-10-03 16:18:38 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
4b635e7f91
23337: fix unmetafication for stat() of files in compctl
2007-04-27 16:04:47 +00:00
Peter Stephenson
34381548da
Incomplete improvements for $'...' in completion
2006-12-03 21:07:17 +00:00
Peter Stephenson
b736a639dd
string quoting in compctl used QT_NONE instead of QT_BACKSLASH
2006-10-16 17:02:05 +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
7b927aeac7
22660: unmetafy directory for opendir() etc. in compctl
2006-09-11 10:05:23 +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
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
Peter Stephenson
2a888b3d5a
c.f. 21590: metafy_line()/unmetafy_line() now support wide characters
2005-08-10 10:56:40 +00:00
Peter Stephenson
88a37cc187
c.f. 20675: improve zle as a basis for Unicode.
...
unposted: update version to 4.2.3-dev-1
2005-01-14 13:04:47 +00:00
Peter Stephenson
69b4b8bdde
20605: Use separate structure with get/set/unset methods fro parameters.
...
Separate justification width of parameters from base/precision.
2004-12-07 16:54:58 +00:00
Peter Stephenson
6b1dc0f701
20331: Use internal zlong variables for consistency
...
20332: Add WIDGETSTYLE zle parameter
2004-09-09 10:12:42 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Wayne Davison
12b2ed63ab
Silenced one signed/unsigned comparison compiler warning.
2004-05-28 19:24:13 +00:00
Oliver Kiddle
7feb529776
19422: fix crash resulting from passing a long option to compctl
2004-02-15 12:55:30 +00:00