From 3705d47bb3f3229234cba992320eadc97a221caf Mon Sep 17 00:00:00 2001 From: Trevor Rosen Date: Mon, 12 Sep 2016 10:55:48 -0500 Subject: [PATCH] Fix iTerm crash on window re-size (#5211) --- plugins/vi-mode/vi-mode.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index dee694b9a..82a2f3040 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -6,7 +6,7 @@ function zle-keymap-select() { # Ensure that the prompt is redrawn when the terminal size changes. TRAPWINCH() { - zle && { zle reset-prompt; zle -R } + zle && zle -R } zle -N zle-keymap-select