about summary refs log tree commit diff
path: root/Src
Commit message (Collapse)AuthorAgeFilesLines
* 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-1128-124/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 33940: handle backslash-meta correctly in lexerJun-ichi Takimoto2014-12-101-1/+13
|
* 33932: revise boundary check in unmeta()Jun-ichi Takimoto2014-12-091-5/+3
|
* 33924: allow vi line/characterwise mode to be forcedOliver Kiddle2014-12-084-3/+26
|
* 33894: boundary conditions in unmeta(), unmetafy()Barton E. Schaefer2014-12-071-3/+5
| | | | | | | Check that we aren't running off the end of the string when converting the next byte after a Meta byte. This is just defensive programming in case of bad metafied strings coming through from gettokstr(), some repairs there are likely still needed.
* 33854: errors end recursion through scanner()Barton E. Schaefer2014-12-071-1/+1
| | | | Makes **/ more easily interruptible
* 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
|
* 33820: detect support for realpath() with a NULLOliver Kiddle2014-11-301-25/+22
| | | | argument and fixes to the use of it
* 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-305-9/+9
|
* 33816, 33819: GLOB_ASSIGN changes integer and floating type variables to ↵Barton E. Schaefer2014-11-281-1/+9
| | | | string scalars
* unposted: fix compiler set-but-not-used warning.Wayne Davison2014-11-281-2/+4
|
* 33815: Fix word transposition bug.Marc Finet2014-11-281-1/+0
| | | | With a one-character word the wrong two words could be transposed.
* 33793: add 0b binary interpretation to integer constantsPeter Stephenson2014-11-262-2/+6
|
* 33770: avoid calling identical FIONREAD ioctl twice in successionOliver Kiddle2014-11-251-9/+5
|
* 33791: fatal errors in an "always" construct yield nonzero statusBarton E. Schaefer2014-11-251-2/+3
| | | | | | Fatal errors in the try-block part of an "always" construct cause the entire construct to have nonzero status, even when TRY_BLOCK_ERROR is used to suppress the error.
* 33785: Fix leaks of desthost in ztcpMikael Magnusson2014-11-241-0/+4
| | | | Found by coverity.
* 33775: error opening file in $(<...) is not fatalBarton E. Schaefer2014-11-231-2/+2
|
* 33743: use posix_openpt in zpty if it is availableOliver Kiddle2014-11-241-0/+4
|
* 33750: handle function autoloads for DEBUG_BEFORE_CMDBarton E. Schaefer2014-11-211-0/+4
| | | | | gettext2() lacked a case for the WC_AUTOFN word code, tripping a dputs() on TRAPDEBUG the first time each autoloaded function was run.
* 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
|
* Marc Finet: problems with working directory rationalisation.Peter Stephenson2014-11-131-1/+5
| | | | | | Ensure the length of the directory is kept up to date. Abort following symlinks as soon as there's an error.
* 33656: different algorithm for "whence -am" to produce results more ↵Barton E. Schaefer2014-11-131-44/+30
| | | | | | | | consistent with "whence -m" This uses the scanmatchtable routine to collect the names that match the input pattern, then uses the original -a path search loop to generate the output, to avoid duplicating test conditions and output formats.
* 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
* 33655: remove overlap of node flagsPeter Stephenson2014-11-081-3/+3
|
* Handle -a option to whence in combination with -m.Peter Stephenson2014-11-081-5/+41
|
* 33624: keep region active when widget failsOliver Kiddle2014-11-071-1/+0
|
* 33607: Fix some minor problems in zattr moduleMikael Magnusson2014-11-071-37/+30
| | | | | | | | | | | | | | | | | | | Remove the listattr call in zgetattr, it only caused no error to be output when trying to retrieve an xattr from a file with no xattrs. When a file had xattrs, it would just add an extra syscall for no good reason. Always set an array parameter in zlistattr, this makes the returned value much easier to use; in fact the _zattr completer didn't account for this and zlistattr foo <tab> on a file with only one attribute did not work. Almost all of the patch is only reindent, the only modification that's not a pure deletions is: - ret = 1 + (attr_len > val_len || attr_len < 0); + ret = 1 + ((val_len > 0 && attr_len > val_len) || attr_len < 0); which makes sure we return the correct error in the new path due to the removed listattr call. (If val_len is -1 due to no attribute existing, it doesn't mean the user should retry the call because the attribute grew in size).
* 33614 (based on RedHat BZ-978613): signal safety when updating global state ↵Barton E. Schaefer2014-11-061-0/+6
| | | | in execshfunc()
* 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
* Treat exec from subshell as if forkedPeter Stephenson2014-11-021-0/+9
| | | | | This removes weird behaviour when optimising the last command. In particular SHLVL is correct from a subshell executed as the last command.