fix(vi-mode): keep cursor hook status successful (#13822)

This commit is contained in:
Lucas Ma 2026-06-15 18:15:30 +08:00 committed by GitHub
parent 9a67e3b3f5
commit 0a91ce20d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ typeset -g VI_MODE_CURSOR_OPPEND=${VI_MODE_CURSOR_OPPEND:=0}
typeset -g VI_KEYMAP=${VI_KEYMAP:=main}
function _vi-mode-set-cursor-shape-for-keymap() {
[[ "$VI_MODE_SET_CURSOR" = true ]] || return
[[ "$VI_MODE_SET_CURSOR" = true ]] || return 0
# https://vt100.net/docs/vt510-rm/DECSCUSR
local _shape=0