summary refs log tree commit diff
path: root/Src/Zle
Commit message (Collapse)AuthorAgeFilesLines
* Rearrange context saving.Peter Stephenson2015-01-094-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 Takimoto2015-01-072-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 arrayMikael Magnusson2015-01-061-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 clnicezputsMikael Magnusson2015-01-061-0/+2
| | | | Found by Coverity (Issue 1255808).
* 34121: compresult: Remove unneeded NULL checkMikael Magnusson2015-01-061-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 checkMikael Magnusson2015-01-061-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 zfreeMikael Magnusson2015-01-061-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 insteadMikael Magnusson2015-01-061-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 strlenMikael Magnusson2015-01-061-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 Shahaf2014-12-281-1/+1
|
* 34005: region_highlights memory fixPeter Stephenson2014-12-191-2/+8
| | | | Zero uninitialised part of memory when reallocing
* 34002: zshcalloc() in init_keymaps()Barton E. Schaefer2014-12-181-1/+1
|
* 33981: more care with region_highlights managementPeter Stephenson2014-12-182-29/+39
|
* 33978: avoid infinite loop in interactive modeJun-ichi Takimoto2014-12-181-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 bindingOliver Kiddle2014-12-132-1/+2
|
* 33846: additional default vi-mode key bindingsOliver Kiddle2014-12-133-5/+12
|
* 33950: ignore KEYTIMEOUT for vi operatorsOliver Kiddle2014-12-123-12/+19
|
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-1110-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 forcedOliver Kiddle2014-12-084-3/+26
|
* 33860: minor fixes to vi mode changesOliver Kiddle2014-12-054-44/+52
|
* 33845: save correct cursor position with push-line from vi command modeOliver Kiddle2014-12-051-0/+2
|
* 33823: overwrite mode shouldn't replace newlinesOliver Kiddle2014-11-301-11/+10
|
* 33800: remove old workaround for ancient systems toOliver Kiddle2014-11-301-41/+2
| | | | consume typeahead before setting up the terminal
* 33818: fix types passed to sizeof detected by coverity as being wrongOliver Kiddle2014-11-301-2/+2
|
* 33815: Fix word transposition bug.Marc Finet2014-11-281-1/+0
| | | | With a one-character word the wrong two words could be transposed.
* 33770: avoid calling identical FIONREAD ioctl twice in successionOliver Kiddle2014-11-251-9/+5
|
* 33738: account for a selection in vi-replace-charsOliver Kiddle2014-11-211-8/+35
|
* 33730: vim style text objects for selecting wordsOliver Kiddle2014-11-214-1/+335
|
* unposted: reindent large blockOliver Kiddle2014-11-171-69/+68
|
* 33704: keybindings, documentation, tests and minorOliver Kiddle2014-11-174-13/+26
| | | | fixes for vim style visual selection changes
* 33636: add support for a linewise visual selection modeOliver Kiddle2014-11-175-11/+92
|
* 33635: adapt region to function as vim style visual selection modeOliver Kiddle2014-11-175-13/+70
|
* 33700: new widget for put in vim style visual selection modeOliver Kiddle2014-11-173-5/+59
|
* 33633: support vim style text objectsOliver Kiddle2014-11-171-2/+13
|
* 33632: use viopp and visual local keymaps if they existOliver Kiddle2014-11-172-1/+9
|
* 33697: new vim style vi-backward-word-end widgetsOliver Kiddle2014-11-152-3/+66
|
* 33696: simple up/down line widgets that don't go through history linesOliver Kiddle2014-11-152-10/+12
|
* 33695: fix various vi-indent problems and vi-swap-case on a blank lineOliver Kiddle2014-11-151-4/+10
|
* 33669: allow an empty line to be yanked with yyOliver Kiddle2014-11-131-2/+3
| | | | This by allocating 1 byte instead of 0 for the empty buffer.
* 33639: fix bug with vi operators on a blank lineOliver Kiddle2014-11-091-9/+3
| | | | and with backward bracket matching
* 33624: keep region active when widget failsOliver Kiddle2014-11-071-1/+0
|
* 33604: fix change merging for vi mode where a change has just been undoneOliver Kiddle2014-11-052-5/+5
|
* 33596: make local keymap keybinding hide global keymapOliver Kiddle2014-11-041-1/+1
| | | | binding that is a prefix of the local binding
* 33593: support numeric argument to vi-joinOliver Kiddle2014-11-031-14/+21
|
* 33575: reset vi change start position if text is insertedOliver Kiddle2014-11-032-1/+4
| | | | before it or on history movement
* 33570, 33576: make killring/yank-pop work in vi mode afterOliver Kiddle2014-10-304-87/+97
| | | | vi-put-before and vi-put-after
* Merge branch 'master' of git://git.code.sf.net/p/zsh/codeBarton E. Schaefer2014-10-292-15/+25
|\ | | | | | | | | Conflicts: ChangeLog
| * 33528: take notice of last column position when using vi-yankOliver Kiddle2014-10-292-15/+25
| | | | | | | | and an upward cursor movement
* | 33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko ↵Barton E. Schaefer2014-10-291-6/+6
|/ | | | | | | | in status message for INT/QUIT signals; check errflag in output loops Two semi-related patches for keyboard interrupt handling in completion, most importantly so that unexpectedly long completion listings can be interrupted.
* 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.