summaryrefslogtreecommitdiff
path: root/Src/Zle
AgeCommit message (Collapse)AuthorFilesLines
2015-05-0435029: improvements to newline handling for vi-mode word movementOliver Kiddle1-18/+33
2015-04-1734919: update interrupt parse error for ZLE cases.Peter Stephenson2-2/+2
Covers both send-break and push-input.
2015-04-1734905: no parse error after keyboard interrupt.Peter Stephenson1-1/+2
Handled generally, though only showing up in special nested cases. Also fix ZLE so it doesn't cancel the interrupt flag when not actually returning from a local keymap.
2015-03-0634653: move aborted vared lines to ZLE_VARED_ABORTEDPeter Stephenson1-1/+3
2015-01-1834322: bug with interface to parsestr() etc.Peter Stephenson2-3/+4
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-09Rearrange context saving.Peter Stephenson4-20/+20
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 Takimoto2-3/+6
If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget.
2015-01-0634120: compctl, jobs: Check contents instead of arrayMikael Magnusson1-1/+1
text is an array in the struct, and can never be null. Found by Coverity (Issue 1255780).
2015-01-0634119: complist: Fix leak of string in clnicezputsMikael Magnusson1-0/+2
Found by Coverity (Issue 1255808).
2015-01-0634121: compresult: Remove unneeded NULL checkMikael Magnusson1-1/+1
The variable is set to if NULL at the start of the function, and derefed on the previous line. Found by Coverity (Issue 1255843).
2015-01-0634104: compctl: Remove pointless checkMikael Magnusson1-1/+1
cc has already been derefed a bunch of times leading up to here. Found by Coverity (Issue 1255841).
2015-01-0634115: compcore: Fix size argument to zfreeMikael Magnusson1-1/+1
Found by Coverity (Issue 1255852), has no impact unless using --enable-zsh-mem, and even then it is minimal.
2015-01-0634117: zle: size_t is unsigned, use int insteadMikael Magnusson1-1/+1
The function wctomb returns an int according to my manpage, and we furthermore check if it is negative, and then return it, and the function signature is int, so declaring it as an int seems to make more sense.
2015-01-0634116: computil: Check for NULL before passing to strlenMikael Magnusson1-1/+2
The rest of this function appears to be very careful about checking these, then forgets in this one spot. Found by Coverity (Issue 1255805).
2014-12-2834070: fix starting position for memset() from 34005.Daniel Shahaf1-1/+1
2014-12-1934005: region_highlights memory fixPeter Stephenson1-2/+8
Zero uninitialised part of memory when reallocing
2014-12-1834002: zshcalloc() in init_keymaps()Barton E. Schaefer1-1/+1
2014-12-1833981: more care with region_highlights managementPeter Stephenson2-29/+39
2014-12-1833978: avoid infinite loop in interactive modeJun-ichi Takimoto1-1/+3
Update command line when accept-and-hold is called in the interactive mode of menu select.
2014-12-1333956: document key binding changes and remove ^X bindingOliver Kiddle2-1/+2
2014-12-1333846: additional default vi-mode key bindingsOliver Kiddle3-5/+12
2014-12-1233950: ignore KEYTIMEOUT for vi operatorsOliver Kiddle3-12/+19
2014-12-1133876: etc.: Separate errors and keyboards interruptsPeter Stephenson10-20/+51
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-0833924: allow vi line/characterwise mode to be forcedOliver Kiddle4-3/+26
2014-12-0533860: minor fixes to vi mode changesOliver Kiddle4-44/+52
2014-12-0533845: save correct cursor position with push-line from vi command modeOliver Kiddle1-0/+2
2014-11-3033823: overwrite mode shouldn't replace newlinesOliver Kiddle1-11/+10
2014-11-3033800: remove old workaround for ancient systems toOliver Kiddle1-41/+2
consume typeahead before setting up the terminal
2014-11-3033818: fix types passed to sizeof detected by coverity as being wrongOliver Kiddle1-2/+2
2014-11-2833815: Fix word transposition bug.Marc Finet1-1/+0
With a one-character word the wrong two words could be transposed.
2014-11-2533770: avoid calling identical FIONREAD ioctl twice in successionOliver Kiddle1-9/+5
2014-11-2133738: account for a selection in vi-replace-charsOliver Kiddle1-8/+35
2014-11-2133730: vim style text objects for selecting wordsOliver Kiddle4-1/+335
2014-11-17unposted: reindent large blockOliver Kiddle1-69/+68
2014-11-1733704: keybindings, documentation, tests and minorOliver Kiddle4-13/+26
fixes for vim style visual selection changes
2014-11-1733636: add support for a linewise visual selection modeOliver Kiddle5-11/+92
2014-11-1733635: adapt region to function as vim style visual selection modeOliver Kiddle5-13/+70
2014-11-1733700: new widget for put in vim style visual selection modeOliver Kiddle3-5/+59
2014-11-1733633: support vim style text objectsOliver Kiddle1-2/+13
2014-11-1733632: use viopp and visual local keymaps if they existOliver Kiddle2-1/+9
2014-11-1533697: new vim style vi-backward-word-end widgetsOliver Kiddle2-3/+66
2014-11-1533696: simple up/down line widgets that don't go through history linesOliver Kiddle2-10/+12
2014-11-1533695: fix various vi-indent problems and vi-swap-case on a blank lineOliver Kiddle1-4/+10
2014-11-1333669: allow an empty line to be yanked with yyOliver Kiddle1-2/+3
This by allocating 1 byte instead of 0 for the empty buffer.
2014-11-0933639: fix bug with vi operators on a blank lineOliver Kiddle1-9/+3
and with backward bracket matching
2014-11-0733624: keep region active when widget failsOliver Kiddle1-1/+0
2014-11-0533604: fix change merging for vi mode where a change has just been undoneOliver Kiddle2-5/+5
2014-11-0433596: make local keymap keybinding hide global keymapOliver Kiddle1-1/+1
binding that is a prefix of the local binding
2014-11-0333593: support numeric argument to vi-joinOliver Kiddle1-14/+21
2014-11-0333575: reset vi change start position if text is insertedOliver Kiddle2-1/+4
before it or on history movement