1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 23:40:39 +01:00

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

This commit is contained in:
Balint Gyapjas
2018-08-29 21:00:35 +02:00
committed by Robby Russell
parent 3cd8eaf9bb
commit 285b540167

View File

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