Fix iTerm crash on window re-size

This commit is contained in:
Trevor Rosen 2016-07-06 16:20:04 -05:00
commit 552f110169
No known key found for this signature in database
GPG key ID: 56054B6FF40DE0F9

View file

@ -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