From 494348abe80f591dfdd68fd4987bafc59fcb32c1 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 25 Apr 2019 20:01:23 +0000 Subject: 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. --- src/ansi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ansi.rs') 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, -- cgit v1.2.3-54-g00ecf