You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with the cursor, when adding completion as a strategy to the ZSH_AUTOSUGGEST_STRATEGY array.
The cursor is changed from a bar to a line, when pasting in Normal mode (I am using ZSH with built-in Vim mode), despite ZSH still being in Normal mode after the past.
To get the correct Normal mode bar-style cursor back, I have to go into Insert mode, and Escape back again to Normal mode.
Removing the completion strategy will fix the issue. Meaning, without completion, the cursor stays as a bar after pasting in Normal mode (which is what it should do, since ZSH is still in Normal mode after the paste).
Describe the bug
I am experiencing an issue with the cursor, when adding
completion
as a strategy to theZSH_AUTOSUGGEST_STRATEGY
array.The cursor is changed from a bar to a line, when pasting in Normal mode (I am using ZSH with built-in Vim mode), despite ZSH still being in Normal mode after the past.
To get the correct Normal mode bar-style cursor back, I have to go into Insert mode, and Escape back again to Normal mode.
Removing the
completion
strategy will fix the issue. Meaning, withoutcompletion
, the cursor stays as a bar after pasting in Normal mode (which is what it should do, since ZSH is still in Normal mode after the paste).Here are my complete findings (the issue is not related to Ghostty, it is also present in e.g. WezTerm): ghostty-org/ghostty#6091 (reply in thread)
Any one else seeing the same?
To Reproduce
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ctrl-c
to get a new zsh line, with Insert mode activated.Expected behavior
The cursor should remain a bar, after pasting in Normal mode, because ZSH is still in Normal mode after pasting.
Desktop
Additional context
n/a
The text was updated successfully, but these errors were encountered: