From 72b341425d8a27026d9dde00519a84f1a6b85bb9 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 26 Feb 2021 23:36:38 +0300 Subject: Fix hollow block cursor being drawn for hidden cursor Commit 530de00 refactored large chunk of Alacritty's internal handling of renderable cells, cursors, and such. This patch fixes a regression where a hollow block cursor was drawn for unfocused windows even if the terminal cursor was hidden. --- alacritty/src/display/content.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty') diff --git a/alacritty/src/display/content.rs b/alacritty/src/display/content.rs index 1c7e2989..9f035a1c 100644 --- a/alacritty/src/display/content.rs +++ b/alacritty/src/display/content.rs @@ -48,7 +48,7 @@ impl<'a> RenderableContent<'a> { // Copy the cursor and override its shape if necessary. let mut terminal_cursor = terminal_content.cursor; - if !show_cursor { + if !show_cursor || terminal_cursor.shape == CursorShape::Hidden { terminal_cursor.shape = CursorShape::Hidden; } else if !term.is_focused && config.cursor.unfocused_hollow { terminal_cursor.shape = CursorShape::HollowBlock; -- cgit