From 77f93f61c5ee6fea9131a1791bd3b106b4b8da4f Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Thu, 7 Jan 2016 11:06:12 +0100 Subject: znt: optimizations for zsh<=5.2, use $BUFFER if cmd is not from history --- plugins/zsh-navigation-tools/n-history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/zsh-navigation-tools/n-history') 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" -- cgit v1.2.3-70-g09d2