From 3febc7c5ee5e37b2c899a2710656f59bb8a65898 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Thu, 17 Jul 2025 12:37:20 -0700 Subject: [PATCH] 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. --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index af0a742c6..a73046500 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -3341,7 +3341,7 @@ pub fn mouseButtonCallback( try self.setSelection(terminal.Selection.init( prev.start(), prev.end(), - false, + prev.rectangle, )); } }