Commit 7de44dbd authored by Gabor Marton's avatar Gabor Marton
Browse files

Added trapwinch to vi-mode plugin.

parent 550ccca9
......@@ -14,6 +14,14 @@ function zle-keymap-select zle-line-init zle-line-finish {
zle -R
}
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
if [[ -o zle ]]; then
zle reset-prompt
zle -R
fi
}
zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select
......
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