mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00:00
znt: optimizations for zsh<=5.2, use $BUFFER if cmd is not from history
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user