[Fix #29] Replace push-line with push-line-or-edit

This commit is contained in:
Sorin Ionescu 2012-03-18 19:04:41 -04:00
parent 6c341cfe35
commit 09837b259a

View file

@ -300,5 +300,10 @@ fi
[[ -n "$keyinfo[Control]" ]] && \ [[ -n "$keyinfo[Control]" ]] && \
bindkey "$keyinfo[Control]I" expand-or-complete-prefix-with-indicator bindkey "$keyinfo[Control]I" expand-or-complete-prefix-with-indicator
# Use a more flexible push-line.
[[ -n "$keyinfo[Control]" && -n "$keyinfo[Escape]" ]] && \
for key in "$keyinfo[Control]Q" "$keyinfo[Escape]"{q,Q}; \
bindkey "$key" push-line-or-edit
unset key unset key