summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/n-history
diff options
context:
space:
mode:
authorSebastian Gniazdowski <sgniazdowski@gmail.com>2016-01-07 11:06:12 +0100
committerSebastian Gniazdowski <sgniazdowski@gmail.com>2016-01-18 08:53:54 +0100
commit77f93f61c5ee6fea9131a1791bd3b106b4b8da4f (patch)
tree48ec36b466d4028d2db3395abe75edb408f5ce3c /plugins/zsh-navigation-tools/n-history
parentd30a501b1c6b8e8164b266318e26ce6d2e4719cf (diff)
downloadzsh-77f93f61c5ee6fea9131a1791bd3b106b4b8da4f.tar.gz
zsh-77f93f61c5ee6fea9131a1791bd3b106b4b8da4f.tar.bz2
zsh-77f93f61c5ee6fea9131a1791bd3b106b4b8da4f.zip
znt: optimizations for zsh<=5.2, use $BUFFER if cmd is not from history
Diffstat (limited to 'plugins/zsh-navigation-tools/n-history')
-rw-r--r--plugins/zsh-navigation-tools/n-history2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/zsh-navigation-tools/n-history b/plugins/zsh-navigation-tools/n-history
index c9e53316b..9f1d6279b 100644
--- a/plugins/zsh-navigation-tools/n-history
+++ b/plugins/zsh-navigation-tools/n-history
@@ -42,7 +42,7 @@ if [ "$REPLY" -gt 0 ]; then
# ZLE?
if [ "${(t)CURSOR}" = "integer-local-special" ]; then
zle redisplay
- zle kill-whole-line
+ zle kill-buffer
zle -U "$selected"
else
print -zr "$selected"