diff options
author | Elaina Martineau <elainamartineau@gmail.com> | 2019-04-28 10:09:26 -0600 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-04-28 16:09:26 +0000 |
commit | b321406908a83f072594f8c2b455c3aefc121750 (patch) | |
tree | 02193ba6b7cb0a41b9eb3eed5f83a4ba676db5b8 /alacritty_terminal | |
parent | dbd8538762ef8968a493e1bf996e8693479ca783 (diff) | |
download | alacritty-b321406908a83f072594f8c2b455c3aefc121750.tar.gz alacritty-b321406908a83f072594f8c2b455c3aefc121750.zip |
Fix double-width characters in URLs only highlighting halfway
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 94b2ade2..84a23eca 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -418,18 +418,15 @@ impl<'a> Iterator for RenderableCellsIter<'a> { let selected = self.selection.as_ref().map(|range| range.contains_(index)).unwrap_or(false); - // Skip empty cells - if cell.is_empty() && !selected { - continue; - } - // Underline URL highlights if self.url_highlight.as_ref().map(|range| range.contains_(index)).unwrap_or(false) { cell.inner.flags.insert(Flags::UNDERLINE); } - return Some(RenderableCell::new(self.config, self.colors, cell, selected)); + if !cell.is_empty() || selected { + return Some(RenderableCell::new(self.config, self.colors, cell, selected)); + } } } } |