浏览代码

Fix iTerm crash on window re-size (#5211)

Trevor Rosen 8 年之前
父节点
当前提交
3705d47bb3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/vi-mode/vi-mode.plugin.zsh

+ 1 - 1
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.
 # Ensure that the prompt is redrawn when the terminal size changes.
 TRAPWINCH() {
 TRAPWINCH() {
-  zle && { zle reset-prompt; zle -R }
+  zle &&  zle -R
 }
 }
 
 
 zle -N zle-keymap-select
 zle -N zle-keymap-select