mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +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);
 | 
			
		||||
      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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user