From cd92dcb149e03ef35aceaf3cc39fad33aa452d8c Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 1 Aug 2021 21:14:17 +0000 Subject: [PATCH] Fix fullwidth character crash on resize Fixes #5383. --- alacritty_terminal/src/term/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 8013f6c5..1808f3aa 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -792,7 +792,7 @@ impl Term { // Remove wide char and spacer. let wide = cursor_cell.flags.contains(Flags::WIDE_CHAR); let point = self.grid.cursor.point; - if wide && point.column <= self.last_column() { + if wide && point.column < self.last_column() { self.grid[point.line][point.column + 1].flags.remove(Flags::WIDE_CHAR_SPACER); } else if point.column > 0 { self.grid[point.line][point.column - 1].clear_wide();