Unverified Commit 9f1ffc64 authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub
Browse files

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
parent dc8811f8
......@@ -11,8 +11,7 @@ function zle-line-init() {
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
zle && zle -R
zle reset-prompt
zle && { zle -R; zle reset-prompt }
}
zle -N zle-keymap-select
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment