mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Selection fix
This commit is contained in:
parent
f029419cea
commit
dc1a7f9cbb
1 changed files with 5 additions and 0 deletions
|
@ -2318,6 +2318,7 @@ namespace IDE.ui
|
|||
if (CheckReadOnly())
|
||||
return false;
|
||||
bool noStar = false;
|
||||
var prevSelection = mSelection;
|
||||
|
||||
var startLineAndCol = CursorLineAndColumn;
|
||||
if ((!HasSelection()) && (doComment != null))
|
||||
|
@ -2448,6 +2449,10 @@ namespace IDE.ui
|
|||
}
|
||||
mSelection = EditSelection(minPos, maxPos + q);
|
||||
}
|
||||
else
|
||||
{
|
||||
mSelection = prevSelection;
|
||||
}
|
||||
|
||||
if (undoBatchStart != null)
|
||||
mData.mUndoManager.Add(undoBatchStart.mBatchEnd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue