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
|
# Updates cursor shape and prompt symbol based on vim mode
|
||||||
zle-keymap-select() {
|
zle-keymap-select() {
|
||||||
case $KEYMAP in
|
case $KEYMAP in
|
||||||
vicmd) print -n -- "\E]50;CursorShape=0\C-G";
|
vicmd) PROMPT_SYMBOL=$N_MODE ;;
|
||||||
PROMPT_SYMBOL=$N_MODE;
|
main|viins) PROMPT_SYMBOL=$I_MODE ;;
|
||||||
;; # block cursor
|
|
||||||
main|viins) print -n -- "\E]50;CursorShape=1\C-G";
|
|
||||||
PROMPT_SYMBOL=$I_MODE;
|
|
||||||
;; # line cursor
|
|
||||||
esac
|
esac
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
zle -R
|
zle -R
|
||||||
|
|
Loading…
Reference in a new issue