summaryrefslogtreecommitdiff
path: root/src/term/cell.rs
diff options
context:
space:
mode:
authorSteve Blundy <sblundy@users.noreply.github.com>2018-12-15 13:33:33 -0800
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-12-15 21:33:33 +0000
commit0c3e28617a95b4ca30ad9bdbb9114f1e4d41dce5 (patch)
tree59d5afe96a755910aba3804a7a84e3b299c49222 /src/term/cell.rs
parent21f888ec4149e3078830dfcf9a17adda0ec7623a (diff)
downloadalacritty-0c3e28617a95b4ca30ad9bdbb9114f1e4d41dce5.tar.gz
alacritty-0c3e28617a95b4ca30ad9bdbb9114f1e4d41dce5.zip
Fixing tabs in copy-paste
This resolves issues with copy-pasting tabs by including them in the pasted string. Selection of tabs is still inconsistent with what might be expected based on other terminal emulators, however the behavior hasn't regressed. This fixes https://github.com/jwilm/alacritty/issues/219.
Diffstat (limited to 'src/term/cell.rs')
-rw-r--r--src/term/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/cell.rs b/src/term/cell.rs
index 259b6ac1..bd561482 100644
--- a/src/term/cell.rs
+++ b/src/term/cell.rs
@@ -114,7 +114,7 @@ impl Cell {
#[inline]
pub fn is_empty(&self) -> bool {
- self.c == ' '
+ (self.c == ' ' || self.c == '\t')
&& self.extra[0] == ' '
&& self.bg == Color::Named(NamedColor::Background)
&& !self.flags.intersects(Flags::INVERSE | Flags::UNDERLINE)