Commit 285b5401 authored by Balint Gyapjas's avatar Balint Gyapjas Committed by Robby Russell
Browse files

vi-mode show indicator on zle-line-init and SIGWINCH (#6449)

parent 3cd8eaf9
......@@ -4,9 +4,15 @@ function zle-keymap-select() {
zle -R
}
# Ensures that MODE_INDITCATOR is displayed on terminal start up.
function zle-line-init() {
zle reset-prompt
}
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
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