mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-08 16:30:40 +01:00
Added trapwinch to vi-mode plugin.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user