Commit 49b4e675 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #3547 from martong/vi_mode_trapwinch

Added trapwinch to vi-mode plugin.
parents 0a0a2785 7de44dbd
...@@ -14,6 +14,14 @@ function zle-keymap-select zle-line-init zle-line-finish { ...@@ -14,6 +14,14 @@ function zle-keymap-select zle-line-init zle-line-finish {
zle -R 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-init
zle -N zle-line-finish zle -N zle-line-finish
zle -N zle-keymap-select 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