mirror of
https://github.com/neovim/neovim.git
synced 2026-04-01 21:32:10 +00:00
Problem: Cursor style is not set to default when guicursor is disabled. See return early when guicursor is disabled (rather than resetting the cursor style to terminal default). Solution: Send the appropriate DECSCUSR sequence to reset the cursor style when guicursor is disabled. Note that this does not fix #23122. The CSI sequence sent out depends on the terminal in question. Ideally, it would would send `\x1b[0 q` to reset the cursor style; the behavior of this sequence depends on the terminal and configuration in question. See [Ghostty docs](https://ghostty.org/docs/vt/csi/decscusr) for more details. In practice, it sends out `\x1b[2 q` (steady block) for Ghostty, which seems to be coming from the Unibilium database. I'm not sure what it may send out for other terminals, but it doesn't exactly reset to the default style.