mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
vi-mode: reset-prompt if zle is active (TRAPWINCH)
Fixes zle errors when resizing: TRAPWINCH:zle: widgets can only be called when ZLE is active
This commit is contained in:
parent
dc8811f817
commit
9f1ffc64f1
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@ function zle-line-init() {
|
||||||
|
|
||||||
# Ensure that the prompt is redrawn when the terminal size changes.
|
# Ensure that the prompt is redrawn when the terminal size changes.
|
||||||
TRAPWINCH() {
|
TRAPWINCH() {
|
||||||
zle && zle -R
|
zle && { zle -R; zle reset-prompt }
|
||||||
zle reset-prompt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|
Loading…
Reference in a new issue