mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(tui): also reset cursor color if it was invisible (#31348)
This commit is contained in:
		| @@ -1304,7 +1304,7 @@ static void tui_set_mode(TUIData *tui, ModeShape mode) | |||||||
|       unibi_out_ext(tui, tui->unibi_ext.set_cursor_color); |       unibi_out_ext(tui, tui->unibi_ext.set_cursor_color); | ||||||
|       tui->cursor_has_color = true; |       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. |     // No cursor color for this mode; reset to default. | ||||||
|     tui->want_invisible = false; |     tui->want_invisible = false; | ||||||
|     tui->cursor_has_color = false; |     tui->cursor_has_color = false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Gregory Anders
					Gregory Anders