mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
vi-mode show indicator on zle-line-init and SIGWINCH (#6449)
This commit is contained in:
parent
3cd8eaf9bb
commit
285b540167
1 changed files with 6 additions and 0 deletions
|
@ -4,9 +4,15 @@ function zle-keymap-select() {
|
||||||
zle -R
|
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.
|
# Ensure that the prompt is redrawn when the terminal size changes.
|
||||||
TRAPWINCH() {
|
TRAPWINCH() {
|
||||||
zle && zle -R
|
zle && zle -R
|
||||||
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|
Loading…
Reference in a new issue