mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
39986, 39989: improve handling of vi-repeat-change
Save previous vi change and throw away a new change that fails. Add zle -f vichange to allow shell widget to be a single change. Fix repeat of command where numeric arguments were multiplied.
This commit is contained in:
parent
fe67ccacf1
commit
cb5f100bd3
11 changed files with 148 additions and 88 deletions
|
|
@ -12,6 +12,9 @@ setopt localoptions noksharrays
|
|||
autoload -Uz read-from-minibuffer
|
||||
local _save_cut="$CUTBUFFER" REPLY
|
||||
|
||||
# mark this widget as a vi change so it can be repeated as a whole
|
||||
zle -f vichange
|
||||
|
||||
# force movement to default to line mode
|
||||
(( REGION_ACTIVE )) || zle -U V
|
||||
# Use the standard vi-change to accept a vi motion.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue