1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-14 09:50:08 +00:00

vi-mode: disable displayed mode on startup

This change had the unintended consequence of overriding the functions to ensure
that application mode was set to use $terminfo sequences, introduced in #6449.

Fixes #7137
This commit is contained in:
Marc Cornellà 2018-09-24 18:52:11 +02:00 committed by GitHub
parent 150a3c9c83
commit 14fead0964
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,11 +4,6 @@ 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 reset-prompt } zle && { zle -R; zle reset-prompt }