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
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
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
11c3bc3d73
33480, slightly tweaked: fix for $' completion.
...
Improves case where completing after the $' but before any
closing quote, or if the closing quote is absent.
No other change --- we still don't attempt to exand the quotes if
we're inside them.
2014-10-24 09:54:55 +01:00
Barton E. Schaefer
31e2ae380a
32540: in doexpandhist(), discard saved line position data rather than restoring from it (updates 32531).
2014-04-13 01:26:07 -07:00
Barton E. Schaefer
f61037a0b0
32531: fix memory leaks detected by valgrind
2014-04-06 09:55:49 -07:00
Oliver Kiddle
90916c4e08
32361: don't reset lastline before completion
2014-02-14 22:51:33 +01:00
Barton E. Schaefer
620b915c4e
Fix leading whitespace in a comment
2014-02-02 13:37:36 -08:00
Oliver Kiddle
a8c4ed64ee
32314: merge undo events corresponding to vi change in the vi-cmd-mode widget so undo from insert mode is useful again
2014-01-31 14:03:47 +01:00
Barton E. Schaefer
1136b9b296
32182: re-enable command completion after a separator
2013-12-25 16:24:27 -08:00
Patrick Oscity
977f9ff5c8
32114: ZLE_PROMPT_INDENT allows you to move rprompt flush right
2013-12-16 21:35:21 +00:00
Peter Stephenson
8ae8fae400
31644: Fix insertion of multibyte characters into editor line.
...
This was broken for a string that came from outside ZLE in the case
where the editing buffer wasn't metafied, i.e. not in completion.
2013-08-08 20:10:06 +01:00
Peter Stephenson
568e0db7a9
31611: attempt to fix crash completing redirection in do loop
2013-08-02 18:58:35 +01:00
Peter Stephenson
eb562c9f2c
30715: use enum lextok for variables containing lexical tokens
2012-10-05 21:35:05 +00:00
Peter Stephenson
8dc39360c9
29820: _pick_variant -b to match builtin
2011-10-14 19:01:41 +00:00
Peter Stephenson
4a3ce8ab89
29644: work around _describe bug, plus cosmetic tweaks
2011-08-03 20:57:32 +00:00
Peter Stephenson
e1680e6840
29503: Missing popheap() on failed autoload
2011-06-23 19:29:24 +00:00
Peter Stephenson
437d5d98f6
unposted: Remove additional for loop noticed by Mikael
2011-06-19 19:42:41 +00:00
Peter Stephenson
962624e8c3
29491: remove some variables set but not used
2011-06-19 16:26:10 +00:00
Peter Stephenson
d89361739a
29165: use term.h globally if needed at all.
2011-05-09 09:49:08 +00:00
Bart Schaefer
2938c58c82
29107: replace overlapping strcpy with memmove
2011-04-29 15:23:33 +00:00
Bart Schaefer
67847a96ee
28926: No newline after the last line in listlist() when printing the list
...
in a single column.
2011-03-28 04:50:20 +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
08dec290d4
Fix ZLE access to pushed history line
2010-03-22 16:22:13 +00:00
Peter Stephenson
7293565963
27479: prevent completions split across backslash-newline
...
from causing too much mayhem
2009-12-07 21:40:04 +00:00
Peter Stephenson
2237f7376e
users/14307: end of command line in completion with variant zsh syntax
2009-08-15 16:59:21 +00:00
Peter Stephenson
84864d5780
26588: don't expand aliases in run-help
2009-02-20 21:49:56 +00:00
Andrey Borzenkov
ead23b1898
26247: fix compilation with -Werror=format-security
2009-01-05 11:14:53 +00:00
Clint Adams
4de54f5d00
25859: avoid possible NULL dereferencing if RC_QUOTES is set.
2008-10-12 18:26:57 +00:00
Clint Adams
b4ee5adc25
25636: free s before returning with an error condition.
2008-09-08 22:17:50 +00:00
Peter Stephenson
9533b19dad
25051: add colour sequences to formatting strings in completion
2008-05-16 09:37:56 +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
fe6d34f024
24816: some places where we need cursor alignment with combining characters
2008-04-14 14:57:52 +00:00
Peter Stephenson
f125ca3293
24810: ensure combining character alignment on unmetafication
2008-04-14 09:13:18 +00:00
Peter Stephenson
97dcf15556
24808: initial support for combining characters in zle
2008-04-13 16:58:42 +00:00
Peter Stephenson
f6f8152f4b
24542: fix RC_QUOTES completion if opening quote not at start of string
2008-02-09 17:32:42 +00:00
Peter Stephenson
91b9f3d786
23900: Better handling of NO_EQUALS in old completion
2007-10-03 16:18:38 +00:00
Peter Stephenson
e0a3e74b15
23809: expand $'...' in completion word
2007-08-30 21:46:01 +00:00
Peter Stephenson
6ab77f00ff
23488: tidy up module interface and documentation
2007-05-29 17:01:07 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
299b238297
23246: fix completions of redirections that occur before the command word
2007-03-28 21:33:16 +00:00
Peter Stephenson
bd6baa2ede
23172: typo displaying multiline explanation strings
2007-02-13 21:54:41 +00:00
Wayne Davison
9abddc0ccf
Fixed the error checking of mbrtowc() since its return vlaue can never
...
be < 0 -- it returns MB_INVALID, (size_t)-1, which is a positive value.
2007-01-26 19:11:48 +00:00
Peter Stephenson
553e011320
23118: improve sorting to make it work with locales
2007-01-21 22:47:36 +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
d94e67d6fd
22950: fix reverse-menu-complete as start of completion
2006-11-02 16:26:23 +00:00
Peter Stephenson
048ac23985
22911: use QT_BACKSLASH if instring is QT_NONE
2006-10-25 18:01:41 +00:00