Skip to content

Commit

Permalink
fix: cursor style compatibility in the term of vim (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Mar 3, 2021
1 parent 41bb661 commit 4948c06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2009,8 +2009,14 @@ function zvm_viins_undo() {

# Change cursor to support for inside/outside tmux
function zvm_set_cursor() {
# Term of vim isn't supported
if [[ -n $VIMRUNTIME ]]; then
return
fi

# Tmux sequence
if [[ -z $TMUX ]]; then
echo -ne $1
echo -ne "$1"
else
echo -ne "\ePtmux;\e\e$1\e\\"
fi
Expand Down

0 comments on commit 4948c06

Please sign in to comment.