mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
Terminal: release hyperlink before copying cursor when switching screen
To avoid an unnecessary copy.
This commit is contained in:
@ -2472,14 +2472,14 @@ pub fn alternateScreen(
|
||||
// Mark our terminal as dirty
|
||||
self.flags.dirty.clear = true;
|
||||
|
||||
// We always end hyperlink state
|
||||
self.screen.endHyperlink();
|
||||
|
||||
// Bring our pen with us
|
||||
self.screen.cursorCopy(old.cursor) catch |err| {
|
||||
log.warn("cursor copy failed entering alt screen err={}", .{err});
|
||||
};
|
||||
|
||||
// We always end hyperlink state
|
||||
self.screen.endHyperlink();
|
||||
|
||||
if (options.clear_on_enter) {
|
||||
self.eraseDisplay(.complete, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user