diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-11-20 23:54:45 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-11-20 23:59:48 +0100 |
commit | cb5f100bd38a3b21739897fb4236db0700b39477 (patch) | |
tree | 8ad0e44d32b2bf7e7c11e05f9789b7efef2e9a3f /Doc/Zsh | |
parent | fe67ccacf15ee92864f7485fd9e54c3dd1f5d1e3 (diff) | |
download | zsh-cb5f100bd38a3b21739897fb4236db0700b39477.tar.gz zsh-cb5f100bd38a3b21739897fb4236db0700b39477.tar.xz zsh-cb5f100bd38a3b21739897fb4236db0700b39477.zip |
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.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/zle.yo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index fe6a7e93b..ff3144802 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -479,6 +479,13 @@ tt(kill) for indicating that text has been killed into the cutbuffer. When repeatedly invoking a kill widget, text is appended to the cutbuffer instead of replacing it, but when wrapping such widgets, it is necessary to call `tt(zle -f kill)' to retain this effect. + +tt(vichange) for indicating that the widget represents a vi change that +can be repeated as a whole with `tt(vi-repeat-change)'. The flag should be set +early in the function before inspecting the value of tt(NUMERIC) or invoking +other widgets. This has no effect for a widget invoked from insert mode. If +insert mode is active when the widget finishes, the change extends until next +returning to command mode. ) cindex(completion widgets, creating) item(tt(-C) var(widget) var(completion-widget) var(function))( |