From 12640fd2b7bad04c007c787ac485fba6d09b1b7e Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 27 Oct 2024 05:28:36 -0400 Subject: [PATCH] Restored selection when closing QuickFind --- IDE/src/ui/QuickFind.bf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IDE/src/ui/QuickFind.bf b/IDE/src/ui/QuickFind.bf index dd550039..dbba189b 100644 --- a/IDE/src/ui/QuickFind.bf +++ b/IDE/src/ui/QuickFind.bf @@ -741,6 +741,8 @@ namespace IDE.ui var sourceContent = mEditWidget.Content as SourceEditWidgetContent; if (mSelectionStart != null) { + if (mSelectionEnd != null) + sourceContent.mSelection = .(mSelectionStart.mIndex, mSelectionEnd.mIndex); if (sourceContent != null) sourceContent.PersistentTextPositions.Remove(mSelectionStart); DeleteAndNullify!(mSelectionStart);