From e447156612d3239f6b0e938043038d0ce6edaebf Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 16 Jul 2021 19:08:07 +0000 Subject: Fix copying interrupted tab characters Fixes #5084. --- CHANGELOG.md | 1 + alacritty_terminal/src/term/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 Term { // 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; -- cgit v1.2.3