mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
Merge pull request #3547 from martong/vi_mode_trapwinch
Added trapwinch to vi-mode plugin.
This commit is contained in:
commit
49b4e675e0
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue