summaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-04-25 20:01:23 +0000
committerGitHub <noreply@github.com>2019-04-25 20:01:23 +0000
commit494348abe80f591dfdd68fd4987bafc59fcb32c1 (patch)
tree6045c1e4f1e846962d0fe4d2c925c14c4805a98d /src/ansi.rs
parente964af8a5ea390d96667e80873060d33079134fd (diff)
downloadalacritty-494348abe80f591dfdd68fd4987bafc59fcb32c1.tar.gz
alacritty-494348abe80f591dfdd68fd4987bafc59fcb32c1.zip
Fix cursor disappearing
The cfc20d4f34dca535654cc32df18e785296af4cc5 commit introduced a regression which would cause the cursor to disappear after the glyph cache has been filled. Since the cursor was not cached on the glyph cache, the cursor would quickly fill up the OpenGL texture with lots of cursor textures and then things would break after the atlas was filled completely. This adds a separate cursor cache which is keyed by the cursor style that will persist the texture without flooding the atlas. This fixes #2355.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index 4e76c05b..c0ebb79c 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -343,7 +343,7 @@ pub trait Handler {
}
/// Describes shape of cursor
-#[derive(Debug, Eq, PartialEq, Copy, Clone, Deserialize)]
+#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash, Deserialize)]
pub enum CursorStyle {
/// Cursor is a block like `▒`
Block,