shell/zsh (prompt): don't try to change cursorshape

This commit is contained in:
Henrik Lissner 2017-01-08 14:19:53 -05:00
parent 0c188b270a
commit 183ebfe8df

View file

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