summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-07-16 19:08:07 +0000
committerGitHub <noreply@github.com>2021-07-16 19:08:07 +0000
commite447156612d3239f6b0e938043038d0ce6edaebf (patch)
treeadf7efa70b566232d3cfd8c788ca10fd1d537fdb
parente0f0cdfb8aed4c99819019fd3d515d3584e01a45 (diff)
Fix copying interrupted tab characters
Fixes #5084.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty_terminal/src/term/mod.rs2
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;