Unverified Commit 08b04f5d authored by mickk-on-cpp's avatar mickk-on-cpp Committed by GitHub
Browse files

fancy-ctrl-z: ensure widgets are called with full context (#4838)

This allows other plugins that hook e.g. accept-line to identify the
fancy-ctrl-z widget as the caller and take appropriate steps when
necessary.

See https://github.com/tarruda/zsh-autosuggestions/issues/82#issuecomment-181133379
parent 2b499e1a
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line
zle accept-line -w
else
zle push-input
zle clear-screen
zle push-input -w
zle clear-screen -w
fi
}
zle -N fancy-ctrl-z
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment