neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f81131cca2b4bf28f3d0a2411b13d0082a580903
parent 29c72cdf4a4913c152f037865cb28c78a8930340
Author: Gregory Anders <greg@gpanders.com>
Date:   Mon, 25 Nov 2024 16:32:03 -0600

fix(tui): also reset cursor color if it was invisible (#31348)


Diffstat:
Msrc/nvim/tui/tui.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;