diff options
author | Robby Russell <robby@planetargon.com> | 2015-02-22 09:29:41 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-02-22 09:29:41 -0800 |
commit | 6713aef977b00577eb24512c7d41d8b55888a140 (patch) | |
tree | af57e3bb6760ae997548dd31b1b92ef02fc6a0b1 /plugins | |
parent | aa16e18644b3fee0b3cf0320692d6566d539cdd0 (diff) | |
parent | 7b71dccbaff4a9bb72fc069407723d2ecb7c0eae (diff) | |
download | zsh-6713aef977b00577eb24512c7d41d8b55888a140.tar.gz zsh-6713aef977b00577eb24512c7d41d8b55888a140.tar.bz2 zsh-6713aef977b00577eb24512c7d41d8b55888a140.zip |
Merge branch 'master' of github.com:robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/vi-mode/vi-mode.plugin.zsh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index 1de8bf91a..4424bb29a 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -16,10 +16,7 @@ function zle-keymap-select zle-line-init zle-line-finish { # Ensure that the prompt is redrawn when the terminal size changes. TRAPWINCH() { - if [[ -o zle ]]; then - zle reset-prompt - zle -R - fi + zle && { zle reset-prompt; zle -R } } zle -N zle-line-init |