diff options
author | Gregory Anders <greg@gpanders.com> | 2024-11-25 16:32:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-25 16:32:03 -0600 |
commit | f81131cca2b4bf28f3d0a2411b13d0082a580903 (patch) | |
tree | 92177207ed43d43a915ae1c115dd1455a60e827c | |
parent | 29c72cdf4a4913c152f037865cb28c78a8930340 (diff) | |
download | rneovim-f81131cca2b4bf28f3d0a2411b13d0082a580903.tar.gz rneovim-f81131cca2b4bf28f3d0a2411b13d0082a580903.tar.bz2 rneovim-f81131cca2b4bf28f3d0a2411b13d0082a580903.zip |
fix(tui): also reset cursor color if it was invisible (#31348)
-rw-r--r-- | src/nvim/tui/tui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index cb893ec777..6e0012096b 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1304,7 +1304,7 @@ static void tui_set_mode(TUIData *tui, ModeShape mode) unibi_out_ext(tui, tui->unibi_ext.set_cursor_color); tui->cursor_has_color = true; } - } else if (c.id == 0 && tui->cursor_has_color) { + } else if (c.id == 0 && (tui->want_invisible || tui->cursor_has_color)) { // No cursor color for this mode; reset to default. tui->want_invisible = false; tui->cursor_has_color = false; |