Surface: use rect selection state when setting selection on release

Looks like 52354b8 missed noting the outgoing screen selection state's
rectangle flag when setting the selection on mouse release, this was
causing the selection that was actually set to be
standard/wrap-selected. This corrects that by just shipping said flag
when calling setSelection.
pull/7972/head
Chris Marchesi 2025-07-17 12:37:20 -07:00
parent 0d61b94c10
commit 3febc7c5ee
No known key found for this signature in database
GPG Key ID: E9C6A4EBE1EB7618
1 changed files with 1 additions and 1 deletions

View File

@ -3341,7 +3341,7 @@ pub fn mouseButtonCallback(
try self.setSelection(terminal.Selection.init(
prev.start(),
prev.end(),
false,
prev.rectangle,
));
}
}