Shell integration: Set cursor shape to whatever is specified in the cursor_shape option when executing a command rather than the block shape

This commit is contained in:
Kovid Goyal
2022-01-25 13:30:48 +05:30
parent 364bad504c
commit 44e3a6f0fb
3 changed files with 5 additions and 5 deletions

View File

@@ -251,9 +251,9 @@ _ksi_deferred_init() {
*) builtin print -nu "$_ksi_fd" '\e[5 q';;
esac
}
# Restore the blinking block cursor before executing an external command
# Restore the blinking default shape before executing an external command
functions[_ksi_preexec]+="
builtin print -rnu $_ksi_fd \$'\\e[1 q'"
builtin print -rnu $_ksi_fd \$'\\e[0 q'"
fi