move selection to screen

This commit is contained in:
Mitchell Hashimoto
2023-03-21 10:43:50 -07:00
parent 88a7b3067a
commit dfb40426a0
5 changed files with 26 additions and 27 deletions

View File

@@ -745,7 +745,7 @@ pub fn render(
// Convert our selection to viewport points because we copy only
// the viewport above.
const selection: ?terminal.Selection = if (state.terminal.selection) |sel|
const selection: ?terminal.Selection = if (state.terminal.screen.selection) |sel|
sel.toViewport(&state.terminal.screen)
else
null;