summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_tricky.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-0552646: extend support for highlight groups to completion explanation strings ↵Oliver Kiddle1-0/+8
and WATCHFMT
2024-02-03Typos in previous commit commentsBart Schaefer1-1/+1
2024-02-03unposted: Record as comments some notes about namespace usage exceptions.Bart Schaefer1-1/+4
2023-05-11users/29070: clean up tokens in cmdstr before compctl completionBart Schaefer1-0/+2
2023-03-0551483: Enable assignment and expansion of parameters with ksh-like namespace ↵Bart Schaefer1-3/+3
prefixes.
2023-02-0951320, 51383: fixes to prevent later reappearance of old attributesOliver Kiddle1-0/+2
Also associated test updates and a test fix for TERM=dumb.
2023-01-1051258, 51272: refactor handling of terminal attributes, removing OFF flags ↵Oliver Kiddle1-28/+20
in zattr
2019-12-3124581: Fix array assignments in shell word splitting and completion.Peter Stephenson1-1/+3
Assignments after the first were not recognised as such as without the full parser the state didn't return to command position. Fix this in bufferwords() and the completion miniparser.
2018-11-0543759: add support for true colour terminalsOliver Kiddle1-4/+5
2018-02-2623180: Fix expand-or-complete with ~[...].Peter Stephenson1-0/+9
The square brackets shouldn't be treated as wildcards.
2017-09-24Updates for ksh array element syntax.Peter Stephenson1-1/+1
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-06-1741242: zstrbcmp(...) removed in favor of zstrcmp(..., ↵Barton E. Schaefer1-47/+0
SORTIT_IGNORING_BACKSLASHES) This should make sorting consistent in completion listings vs. elsewhere.
2016-11-2940026: Fix for completion after redirection.Peter Stephenson1-5/+19
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-09-29unposted: Update findcmd() in Zle.Peter Stephenson1-2/+3
Unfinished business from previous patch.
2016-09-1139252: internal: quotestring: Drop the 'e' parameter, which no caller uses.Daniel Shahaf1-12/+12
2016-04-0738248: fix word position calculation when completing on or just before a ↵Barton E. Schaefer1-0/+15
redirection operator The completion result is still in need of some repair; e.g., if the first thing on the line is the redirection, completion before it is not taken to be in command position, and in this and other cases a necessary space is not inserted between the completed word and the redirection.
2016-04-0538229: fix cursor placement calculation when completing in empty double quotesBarton E. Schaefer1-1/+8
2016-03-0738043: allow any completion widget to cycle matches for menu completion to ↵Oliver Kiddle1-2/+1
fix reverse menu completion
2015-11-13unposted: Make $EDITOR's jump-to-matching-brace happy.Daniel Shahaf1-0/+2
2015-11-1137092: make nested ${(P)name} properly refer to parameter on returnPeter Stephenson1-1/+1
2015-09-25unposted: zle: Document the C helper function processcmd().Daniel Shahaf1-0/+3
Also, tweak the docstring of zlelineasstring().
2015-09-0136365: magic-space could delete the reset of the line.Peter Stephenson1-0/+2
If we got a LEXERR, which didn't necessarily mean an actual error, just something the rather nasty ctxtlex() got confused by, we didn't scan the reset of the line.
2015-08-2636288: refine 36825, slightly different test for redirect contextBarton E. Schaefer1-1/+1
2015-08-2636285: update 36025, context cannot be command and redirect at the same ↵Barton E. Schaefer1-4/+5
time, redirect wins
2015-08-0936025: Fix completion aftoer "foo=bar; setopt ".Peter Stephenson1-3/+13
Done by catching a case that doesn't seem to be handled otherwise, so there's some hope it doesn't screw up too much.
2015-07-2535908: fix $((...)) completion in expand-or-complete widgetPeter Stephenson1-2/+4
2015-06-2935637: remove the now unused module hook for reverse-menu-completeOliver Kiddle1-4/+1
2015-06-2935627: make reverse-menu-complete start with the last match inOliver Kiddle1-8/+2
menu selection
2015-06-2635615: fix completion after tyepsetPeter Stephenson1-5/+12
2015-01-09Rearrange context saving.Peter Stephenson1-12/+12
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-0734144: allocate origline by ztrdup(), not by dupstring()Jun-ichi Takimoto1-1/+2
If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget.
2014-12-1133876: etc.: Separate errors and keyboards interruptsPeter Stephenson1-3/+17
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-10-2433480, slightly tweaked: fix for $' completion.Peter Stephenson1-4/+11
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-04-1332540: in doexpandhist(), discard saved line position data rather than ↵Barton E. Schaefer1-1/+1
restoring from it (updates 32531).
2014-04-0632531: fix memory leaks detected by valgrindBarton E. Schaefer1-0/+1
2014-02-1432361: don't reset lastline before completionOliver Kiddle1-1/+0
2014-02-02Fix leading whitespace in a commentBarton E. Schaefer1-1/+1
2014-01-3132314: merge undo events corresponding to vi change in the vi-cmd-mode ↵Oliver Kiddle1-2/+1
widget so undo from insert mode is useful again
2013-12-2532182: re-enable command completion after a separatorBarton E. Schaefer1-4/+7
2013-12-1632114: ZLE_PROMPT_INDENT allows you to move rprompt flush rightPatrick Oscity1-1/+11
2013-08-0831644: Fix insertion of multibyte characters into editor line.Peter Stephenson1-1/+2
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-0231611: attempt to fix crash completing redirection in do loopPeter Stephenson1-2/+24
2012-10-0530715: use enum lextok for variables containing lexical tokensPeter Stephenson1-6/+9
2011-10-1429820: _pick_variant -b to match builtinPeter Stephenson1-0/+41
2011-08-0329644: work around _describe bug, plus cosmetic tweaksPeter Stephenson1-1/+12
2011-06-2329503: Missing popheap() on failed autoloadPeter Stephenson1-4/+0
2011-06-19unposted: Remove additional for loop noticed by MikaelPeter Stephenson1-2/+0
2011-06-1929491: remove some variables set but not usedPeter Stephenson1-3/+1
2011-05-0929165: use term.h globally if needed at all.Peter Stephenson1-19/+19
2011-04-2929107: replace overlapping strcpy with memmoveBart Schaefer1-4/+4