diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-07-16 19:08:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 19:08:07 +0000 |
commit | e447156612d3239f6b0e938043038d0ce6edaebf (patch) | |
tree | adf7efa70b566232d3cfd8c788ca10fd1d537fdb | |
parent | e0f0cdfb8aed4c99819019fd3d515d3584e01a45 (diff) | |
download | alacritty-e447156612d3239f6b0e938043038d0ce6edaebf.tar.gz alacritty-e447156612d3239f6b0e938043038d0ce6edaebf.zip |
Fix copying interrupted tab characters
Fixes #5084.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f46a299d..50bc907b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Search without vi mode not starting at the correct location when scrolled into history - Crash when starting a vi mode search from the bottommost line - Original scroll position not restored after canceling search +- Clipboard copy skipping non-empty cells when encountering an interrupted tab character ## 0.8.0 diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 29556517..1c29327a 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -406,7 +406,7 @@ impl<T> Term<T> { // Skip over cells until next tab-stop once a tab was found. if tab_mode { - if self.tabs[column] { + if self.tabs[column] || cell.c != ' ' { tab_mode = false; } else { continue; |