mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Select line on empty selection for Comment/Uncomment Selection
This commit is contained in:
parent
e33ca41fd0
commit
1b7a4139e7
1 changed files with 8 additions and 0 deletions
|
@ -2162,6 +2162,14 @@ namespace IDE.ui
|
|||
if (CheckReadOnly())
|
||||
return false;
|
||||
|
||||
if ((!HasSelection()) && (doComment != null))
|
||||
{
|
||||
CursorToLineEnd();
|
||||
int cursorEndPos = CursorTextPos;
|
||||
CursorToLineStart(false);
|
||||
mSelection = .(CursorTextPos, cursorEndPos);
|
||||
}
|
||||
|
||||
if ((HasSelection()) && (mSelection.Value.Length > 1))
|
||||
{
|
||||
var startLineAndCol = CursorLineAndColumn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue