Skip to content

Commit

Permalink
fix: selected text remains after clear_screen action
Browse files Browse the repository at this point in the history
Fixes #3414
  • Loading branch information
dmehala committed Dec 30, 2024
1 parent d5703a5 commit 33b1131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/termio/Termio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ pub fn clearScreen(self: *Termio, td: *ThreadData, history: bool) !void {
// for alt screen, we do nothing.
if (self.terminal.active_screen == .alternate) return;

// Clear our selection
self.terminal.screen.clearSelection();

// Clear our scrollback
if (history) self.terminal.eraseDisplay(.scrollback, false);

Expand Down

0 comments on commit 33b1131

Please sign in to comment.