diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-08-01 21:14:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 21:14:17 +0000 |
commit | fd0fe967a3750a95ea54012f4d3f862ae0615f21 (patch) | |
tree | a868cbfee3da6e44a17e06c3f4ed6143ca38b228 /alacritty_terminal/src | |
parent | 259e7c7a09f343b28ad34254f3880e9c4cf5c5ec (diff) | |
download | alacritty-fd0fe967a3750a95ea54012f4d3f862ae0615f21.tar.gz alacritty-fd0fe967a3750a95ea54012f4d3f862ae0615f21.zip |
Fix fullwidth character crash on resize
Fixes #5383.
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<T> Term<T> { // 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(); |