diff options
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index 255cbce7..64de5492 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -99,6 +99,14 @@ impl Cell { self.extra = None; } } + + /// Remove all wide char data from a cell. + #[inline(never)] + pub fn clear_wide(&mut self) { + self.flags.remove(Flags::WIDE_CHAR); + self.drop_extra(); + self.c = ' '; + } } impl GridCell for Cell { |