summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
Commit message (Collapse)AuthorAgeFilesLines
* 23180: Fix expand-or-complete with ~[...].Peter Stephenson2018-02-261-0/+9
| | | | The square brackets shouldn't be treated as wildcards.
* Updates for ksh array element syntax.Peter Stephenson2017-09-241-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.
* 41242: zstrbcmp(...) removed in favor of zstrcmp(..., ↵Barton E. Schaefer2017-06-171-47/+0
| | | | | | SORTIT_IGNORING_BACKSLASHES) This should make sorting consistent in completion listings vs. elsewhere.
* 40026: Fix for completion after redirection.Peter Stephenson2016-11-291-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.
* unposted: Update findcmd() in Zle.Peter Stephenson2016-09-291-2/+3
| | | | Unfinished business from previous patch.
* 39252: internal: quotestring: Drop the 'e' parameter, which no caller uses.Daniel Shahaf2016-09-111-12/+12
|
* 38248: fix word position calculation when completing on or just before a ↵Barton E. Schaefer2016-04-071-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.
* 38229: fix cursor placement calculation when completing in empty double quotesBarton E. Schaefer2016-04-051-1/+8
|
* 38043: allow any completion widget to cycle matches for menu completion to ↵Oliver Kiddle2016-03-071-2/+1
| | | | fix reverse menu completion
* unposted: Make $EDITOR's jump-to-matching-brace happy.Daniel Shahaf2015-11-131-0/+2
|
* 37092: make nested ${(P)name} properly refer to parameter on returnPeter Stephenson2015-11-111-1/+1
|
* unposted: zle: Document the C helper function processcmd().Daniel Shahaf2015-09-251-0/+3
| | | | Also, tweak the docstring of zlelineasstring().
* 36365: magic-space could delete the reset of the line.Peter Stephenson2015-09-011-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.
* 36288: refine 36825, slightly different test for redirect contextBarton E. Schaefer2015-08-261-1/+1
|
* 36285: update 36025, context cannot be command and redirect at the same ↵Barton E. Schaefer2015-08-261-4/+5
| | | | time, redirect wins
* 36025: Fix completion aftoer "foo=bar; setopt ".Peter Stephenson2015-08-091-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.
* 35908: fix $((...)) completion in expand-or-complete widgetPeter Stephenson2015-07-251-2/+4
|
* 35637: remove the now unused module hook for reverse-menu-completeOliver Kiddle2015-06-291-4/+1
|
* 35627: make reverse-menu-complete start with the last match inOliver Kiddle2015-06-291-8/+2
| | | | menu selection
* 35615: fix completion after tyepsetPeter Stephenson2015-06-261-5/+12
|
* Rearrange context saving.Peter Stephenson2015-01-091-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.
* 34144: allocate origline by ztrdup(), not by dupstring()Jun-ichi Takimoto2015-01-071-1/+2
| | | | | If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget.
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-111-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.
* 33480, slightly tweaked: fix for $' completion.Peter Stephenson2014-10-241-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.
* 32540: in doexpandhist(), discard saved line position data rather than ↵Barton E. Schaefer2014-04-131-1/+1
| | | | restoring from it (updates 32531).
* 32531: fix memory leaks detected by valgrindBarton E. Schaefer2014-04-061-0/+1
|
* 32361: don't reset lastline before completionOliver Kiddle2014-02-141-1/+0
|
* Fix leading whitespace in a commentBarton E. Schaefer2014-02-021-1/+1
|
* 32314: merge undo events corresponding to vi change in the vi-cmd-mode ↵Oliver Kiddle2014-01-311-2/+1
| | | | widget so undo from insert mode is useful again
* 32182: re-enable command completion after a separatorBarton E. Schaefer2013-12-251-4/+7
|
* 32114: ZLE_PROMPT_INDENT allows you to move rprompt flush rightPatrick Oscity2013-12-161-1/+11
|
* 31644: Fix insertion of multibyte characters into editor line.Peter Stephenson2013-08-081-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.
* 31611: attempt to fix crash completing redirection in do loopPeter Stephenson2013-08-021-2/+24
|
* 30715: use enum lextok for variables containing lexical tokensPeter Stephenson2012-10-051-6/+9
|
* 29820: _pick_variant -b to match builtinPeter Stephenson2011-10-141-0/+41
|
* 29644: work around _describe bug, plus cosmetic tweaksPeter Stephenson2011-08-031-1/+12
|
* 29503: Missing popheap() on failed autoloadPeter Stephenson2011-06-231-4/+0
|
* unposted: Remove additional for loop noticed by MikaelPeter Stephenson2011-06-191-2/+0
|
* 29491: remove some variables set but not usedPeter Stephenson2011-06-191-3/+1
|
* 29165: use term.h globally if needed at all.Peter Stephenson2011-05-091-19/+19
|
* 29107: replace overlapping strcpy with memmoveBart Schaefer2011-04-291-4/+4
|
* 28926: No newline after the last line in listlist() when printing the listBart Schaefer2011-03-281-1/+3
| | | | in a single column.
* 28772: Update regions in region highlight dynamicallyPeter Stephenson2011-02-181-5/+3
|
* lexsave/lexrestore lexflagsPeter Stephenson2010-12-141-4/+3
| | | | add new LEXFLAGS_ZLE
* 28528: Rearrange zleparse to lexflagsPeter Stephenson2010-12-141-8/+8
| | | | Add (z+n+)
* Fix ZLE access to pushed history linePeter Stephenson2010-03-221-8/+8
|
* 27479: prevent completions split across backslash-newlinePeter Stephenson2009-12-071-22/+58
| | | | from causing too much mayhem
* users/14307: end of command line in completion with variant zsh syntaxPeter Stephenson2009-08-151-1/+9
|
* 26588: don't expand aliases in run-helpPeter Stephenson2009-02-201-2/+1
|
* 26247: fix compilation with -Werror=format-securityAndrey Borzenkov2009-01-051-1/+1
|