Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 34919: update interrupt parse error for ZLE cases. | Peter Stephenson | 2015-04-17 | 2 | -2/+2 |
| | | | | Covers both send-break and push-input. | ||||
* | 34905: no parse error after keyboard interrupt. | Peter Stephenson | 2015-04-17 | 1 | -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. | ||||
* | 34653: move aborted vared lines to ZLE_VARED_ABORTED | Peter Stephenson | 2015-03-06 | 1 | -1/+3 |
| | |||||
* | 34322: bug with interface to parsestr() etc. | Peter Stephenson | 2015-01-18 | 2 | -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. | ||||
* | Rearrange context saving. | Peter Stephenson | 2015-01-09 | 4 | -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. | ||||
* | 34144: allocate origline by ztrdup(), not by dupstring() | Jun-ichi Takimoto | 2015-01-07 | 2 | -3/+6 |
| | | | | | If origline is allocated in heap, it will have been freed when menuselect() is called directly as a widget. | ||||
* | 34120: compctl, jobs: Check contents instead of array | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | | text is an array in the struct, and can never be null. Found by Coverity (Issue 1255780). | ||||
* | 34119: complist: Fix leak of string in clnicezputs | Mikael Magnusson | 2015-01-06 | 1 | -0/+2 |
| | | | | Found by Coverity (Issue 1255808). | ||||
* | 34121: compresult: Remove unneeded NULL check | Mikael Magnusson | 2015-01-06 | 1 | -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). | ||||
* | 34104: compctl: Remove pointless check | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | cc has already been derefed a bunch of times leading up to here. Found by Coverity (Issue 1255841). | ||||
* | 34115: compcore: Fix size argument to zfree | Mikael Magnusson | 2015-01-06 | 1 | -1/+1 |
| | | | | | Found by Coverity (Issue 1255852), has no impact unless using --enable-zsh-mem, and even then it is minimal. | ||||
* | 34117: zle: size_t is unsigned, use int instead | Mikael Magnusson | 2015-01-06 | 1 | -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. | ||||
* | 34116: computil: Check for NULL before passing to strlen | Mikael Magnusson | 2015-01-06 | 1 | -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). | ||||
* | 34070: fix starting position for memset() from 34005. | Daniel Shahaf | 2014-12-28 | 1 | -1/+1 |
| | |||||
* | 34005: region_highlights memory fix | Peter Stephenson | 2014-12-19 | 1 | -2/+8 |
| | | | | Zero uninitialised part of memory when reallocing | ||||
* | 34002: zshcalloc() in init_keymaps() | Barton E. Schaefer | 2014-12-18 | 1 | -1/+1 |
| | |||||
* | 33981: more care with region_highlights management | Peter Stephenson | 2014-12-18 | 2 | -29/+39 |
| | |||||
* | 33978: avoid infinite loop in interactive mode | Jun-ichi Takimoto | 2014-12-18 | 1 | -1/+3 |
| | | | | | Update command line when accept-and-hold is called in the interactive mode of menu select. | ||||
* | 33956: document key binding changes and remove ^X binding | Oliver Kiddle | 2014-12-13 | 2 | -1/+2 |
| | |||||
* | 33846: additional default vi-mode key bindings | Oliver Kiddle | 2014-12-13 | 3 | -5/+12 |
| | |||||
* | 33950: ignore KEYTIMEOUT for vi operators | Oliver Kiddle | 2014-12-12 | 3 | -12/+19 |
| | |||||
* | 33876: etc.: Separate errors and keyboards interrupts | Peter Stephenson | 2014-12-11 | 10 | -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. | ||||
* | 33924: allow vi line/characterwise mode to be forced | Oliver Kiddle | 2014-12-08 | 4 | -3/+26 |
| | |||||
* | 33860: minor fixes to vi mode changes | Oliver Kiddle | 2014-12-05 | 4 | -44/+52 |
| | |||||
* | 33845: save correct cursor position with push-line from vi command mode | Oliver Kiddle | 2014-12-05 | 1 | -0/+2 |
| | |||||
* | 33823: overwrite mode shouldn't replace newlines | Oliver Kiddle | 2014-11-30 | 1 | -11/+10 |
| | |||||
* | 33800: remove old workaround for ancient systems to | Oliver Kiddle | 2014-11-30 | 1 | -41/+2 |
| | | | | consume typeahead before setting up the terminal | ||||
* | 33818: fix types passed to sizeof detected by coverity as being wrong | Oliver Kiddle | 2014-11-30 | 1 | -2/+2 |
| | |||||
* | 33815: Fix word transposition bug. | Marc Finet | 2014-11-28 | 1 | -1/+0 |
| | | | | With a one-character word the wrong two words could be transposed. | ||||
* | 33770: avoid calling identical FIONREAD ioctl twice in succession | Oliver Kiddle | 2014-11-25 | 1 | -9/+5 |
| | |||||
* | 33738: account for a selection in vi-replace-chars | Oliver Kiddle | 2014-11-21 | 1 | -8/+35 |
| | |||||
* | 33730: vim style text objects for selecting words | Oliver Kiddle | 2014-11-21 | 4 | -1/+335 |
| | |||||
* | unposted: reindent large block | Oliver Kiddle | 2014-11-17 | 1 | -69/+68 |
| | |||||
* | 33704: keybindings, documentation, tests and minor | Oliver Kiddle | 2014-11-17 | 4 | -13/+26 |
| | | | | fixes for vim style visual selection changes | ||||
* | 33636: add support for a linewise visual selection mode | Oliver Kiddle | 2014-11-17 | 5 | -11/+92 |
| | |||||
* | 33635: adapt region to function as vim style visual selection mode | Oliver Kiddle | 2014-11-17 | 5 | -13/+70 |
| | |||||
* | 33700: new widget for put in vim style visual selection mode | Oliver Kiddle | 2014-11-17 | 3 | -5/+59 |
| | |||||
* | 33633: support vim style text objects | Oliver Kiddle | 2014-11-17 | 1 | -2/+13 |
| | |||||
* | 33632: use viopp and visual local keymaps if they exist | Oliver Kiddle | 2014-11-17 | 2 | -1/+9 |
| | |||||
* | 33697: new vim style vi-backward-word-end widgets | Oliver Kiddle | 2014-11-15 | 2 | -3/+66 |
| | |||||
* | 33696: simple up/down line widgets that don't go through history lines | Oliver Kiddle | 2014-11-15 | 2 | -10/+12 |
| | |||||
* | 33695: fix various vi-indent problems and vi-swap-case on a blank line | Oliver Kiddle | 2014-11-15 | 1 | -4/+10 |
| | |||||
* | 33669: allow an empty line to be yanked with yy | Oliver Kiddle | 2014-11-13 | 1 | -2/+3 |
| | | | | This by allocating 1 byte instead of 0 for the empty buffer. | ||||
* | 33639: fix bug with vi operators on a blank line | Oliver Kiddle | 2014-11-09 | 1 | -9/+3 |
| | | | | and with backward bracket matching | ||||
* | 33624: keep region active when widget fails | Oliver Kiddle | 2014-11-07 | 1 | -1/+0 |
| | |||||
* | 33604: fix change merging for vi mode where a change has just been undone | Oliver Kiddle | 2014-11-05 | 2 | -5/+5 |
| | |||||
* | 33596: make local keymap keybinding hide global keymap | Oliver Kiddle | 2014-11-04 | 1 | -1/+1 |
| | | | | binding that is a prefix of the local binding | ||||
* | 33593: support numeric argument to vi-join | Oliver Kiddle | 2014-11-03 | 1 | -14/+21 |
| | |||||
* | 33575: reset vi change start position if text is inserted | Oliver Kiddle | 2014-11-03 | 2 | -1/+4 |
| | | | | before it or on history movement | ||||
* | 33570, 33576: make killring/yank-pop work in vi mode after | Oliver Kiddle | 2014-10-30 | 4 | -87/+97 |
| | | | | vi-put-before and vi-put-after |