mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
fix: selected text remains after clear_screen
action (#4040)
Fixes #3414
This commit is contained in:
@ -466,6 +466,9 @@ pub fn clearScreen(self: *Termio, td: *ThreadData, history: bool) !void {
|
|||||||
// for alt screen, we do nothing.
|
// for alt screen, we do nothing.
|
||||||
if (self.terminal.active_screen == .alternate) return;
|
if (self.terminal.active_screen == .alternate) return;
|
||||||
|
|
||||||
|
// Clear our selection
|
||||||
|
self.terminal.screen.clearSelection();
|
||||||
|
|
||||||
// Clear our scrollback
|
// Clear our scrollback
|
||||||
if (history) self.terminal.eraseDisplay(.scrollback, false);
|
if (history) self.terminal.eraseDisplay(.scrollback, false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user