shell/zsh (prompt): don't try to change cursorshape
This commit is contained in:
parent
0c188b270a
commit
183ebfe8df
|
@ -47,12 +47,8 @@ prompt_init() {
|
|||
# Updates cursor shape and prompt symbol based on vim mode
|
||||
zle-keymap-select() {
|
||||
case $KEYMAP in
|
||||
vicmd) print -n -- "\E]50;CursorShape=0\C-G";
|
||||
PROMPT_SYMBOL=$N_MODE;
|
||||
;; # block cursor
|
||||
main|viins) print -n -- "\E]50;CursorShape=1\C-G";
|
||||
PROMPT_SYMBOL=$I_MODE;
|
||||
;; # line cursor
|
||||
vicmd) PROMPT_SYMBOL=$N_MODE ;;
|
||||
main|viins) PROMPT_SYMBOL=$I_MODE ;;
|
||||
esac
|
||||
zle reset-prompt
|
||||
zle -R
|
||||
|
|
Loading…
Reference in a new issue