diff options
author | Sebastian Gniazdowski <sgniazdowski@gmail.com> | 2015-11-30 10:48:30 +0100 |
---|---|---|
committer | Sebastian Gniazdowski <sgniazdowski@gmail.com> | 2015-11-30 10:48:30 +0100 |
commit | c2b4d9ff40f2f965a5d9d282081f3f8bf51bb5b5 (patch) | |
tree | b96ce8d323c999bc6cfb62fbdddd4ae8f7ba2b5b /plugins/zsh-navigation-tools/znt-history-widget | |
parent | afd28bf1fc22f53c4a1af3f5836ca428affb34b3 (diff) | |
download | zsh-c2b4d9ff40f2f965a5d9d282081f3f8bf51bb5b5.tar.gz zsh-c2b4d9ff40f2f965a5d9d282081f3f8bf51bb5b5.tar.bz2 zsh-c2b4d9ff40f2f965a5d9d282081f3f8bf51bb5b5.zip |
znt: n-history supports multi-line cmds and starts with current buffer
Diffstat (limited to 'plugins/zsh-navigation-tools/znt-history-widget')
-rw-r--r-- | plugins/zsh-navigation-tools/znt-history-widget | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/zsh-navigation-tools/znt-history-widget b/plugins/zsh-navigation-tools/znt-history-widget index 097de8233..9ddae606d 100644 --- a/plugins/zsh-navigation-tools/znt-history-widget +++ b/plugins/zsh-navigation-tools/znt-history-widget @@ -1,8 +1,10 @@ autoload znt-usetty-wrapper n-history local NLIST_START_IN_SEARCH_MODE=1 local NLIST_START_IN_UNIQ_MODE=1 +local NLIST_SET_SEARCH_TO="$BUFFER" znt-usetty-wrapper n-history "$@" unset NLIST_START_IN_SEARCH_MODE unset NLIST_START_IN_UNIQ_MODE +unset NLIST_SET_SEARCH_TO |