znt: optimizations for zsh<=5.2, use $BUFFER if cmd is not from history

This commit is contained in:
Sebastian Gniazdowski
2016-01-07 11:06:12 +01:00
parent d30a501b1c
commit 77f93f61c5
7 changed files with 25 additions and 12 deletions

View File

@@ -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"