3705d47bb3f3229234cba992320eadc97a221caf
- Author
- Trevor Rosen <trevor@catapult-creative.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Fix iTerm crash on window re-size (#5211)
Diff
1diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
2index dee694b9a51b1f352bb68ef5569dfeb4577e96d1..82a2f30405e9d644ad231a6de65e754b22849920 100644
3--- a/plugins/vi-mode/vi-mode.plugin.zsh
4+++ b/plugins/vi-mode/vi-mode.plugin.zsh
5@@ -6,7 +6,7 @@ function zle-keymap-select() {
6
7 # Ensure that the prompt is redrawn when the terminal size changes.
8 TRAPWINCH() {
9- zle && { zle reset-prompt; zle -R }
10+ zle && zle -R
11 }
12
13 zle -N zle-keymap-select