aboutsummaryrefslogtreecommitdiff
path: root/src/cursor.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-04-22 00:20:43 +0000
committerGitHub <noreply@github.com>2019-04-22 00:20:43 +0000
commit4b3e7da0fcef7b876c8fdd015d321d06e5f64e63 (patch)
treeaa7578e501d9cc349eb56c4fd35f53640406c73a /src/cursor.rs
parentd3cfda03715c6a644048995afdffdb085984585a (diff)
downloadr-alacritty-4b3e7da0fcef7b876c8fdd015d321d06e5f64e63.tar.gz
r-alacritty-4b3e7da0fcef7b876c8fdd015d321d06e5f64e63.tar.bz2
r-alacritty-4b3e7da0fcef7b876c8fdd015d321d06e5f64e63.zip
Fix hidden cursor inverting cell colors
Since the block cursor inverts the background and foreground colors of a cell, the hidden cursor has done the same thing without rendering a cursor since it was using the block cursor shape. A new `Hidden` cursor style has been introduced for explicitly handling the invisible cursor differently. This fixes #2342.
Diffstat (limited to 'src/cursor.rs')
-rw-r--r--src/cursor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cursor.rs b/src/cursor.rs
index 268f35fa..196241a0 100644
--- a/src/cursor.rs
+++ b/src/cursor.rs
@@ -45,6 +45,7 @@ pub fn get_cursor_glyph(
CursorStyle::Underline => get_underline_cursor_glyph(width, line_width),
CursorStyle::Beam => get_beam_cursor_glyph(height, line_width),
CursorStyle::Block => get_block_cursor_glyph(height, width),
+ CursorStyle::Hidden => RasterizedGlyph::default(),
}
}