summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/znt-history-widget
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-11-30 18:11:11 +0100
committerMarc Cornellà <marc.cornella@live.com>2015-11-30 18:11:11 +0100
commita19ec1040e20e76baf9ff4f6024d511edda3293e (patch)
treeeacb20c4410ae3b84a15fd71a615bb2499070437 /plugins/zsh-navigation-tools/znt-history-widget
parentafd28bf1fc22f53c4a1af3f5836ca428affb34b3 (diff)
parent39e4dfb6a60cba39a47df68764075d841829be49 (diff)
downloadzsh-a19ec1040e20e76baf9ff4f6024d511edda3293e.tar.gz
zsh-a19ec1040e20e76baf9ff4f6024d511edda3293e.tar.bz2
zsh-a19ec1040e20e76baf9ff4f6024d511edda3293e.zip
Merge pull request #4649 from psprint/master
znt: n-history supports multi-line cmds and starts with current buffer Fixes #4648
Diffstat (limited to 'plugins/zsh-navigation-tools/znt-history-widget')
-rw-r--r--plugins/zsh-navigation-tools/znt-history-widget2
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