1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-08 00:10:41 +01:00

vi-mode: reset-prompt if zle is active (TRAPWINCH)

Fixes zle errors when resizing:

  TRAPWINCH:zle: widgets can only be called when ZLE is active
This commit is contained in:
Marc Cornellà
2018-08-31 21:18:18 +02:00
committed by GitHub
parent dc8811f817
commit 9f1ffc64f1

View File

@@ -11,8 +11,7 @@ function zle-line-init() {
# 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 -R zle && { zle -R; zle reset-prompt }
zle reset-prompt
} }
zle -N zle-keymap-select zle -N zle-keymap-select