Fix copying interrupted tab characters

Fixes #5084.
This commit is contained in:
Christian Duerr 2021-07-16 19:08:07 +00:00 committed by GitHub
parent e0f0cdfb8a
commit e447156612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;