1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Restored selection when closing QuickFind

This commit is contained in:
Brian Fiete 2024-10-27 05:28:36 -04:00
parent ca2c781301
commit 12640fd2b7

View file

@ -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);