mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ fix: Toggle comment on empty selection at insertion point: keep position of selection end
This commit is contained in:
parent
2e6543789f
commit
a3f887af0a
@ -3393,7 +3393,7 @@ void EditToggleLineCommentsSimple(HWND hwnd, LPCWSTR pwszComment, bool bInsertAt
|
||||
iSelStartOffset += (iSelStart <= iPos) ? 0 : cchComment;
|
||||
}
|
||||
DocPos const movedSelEnd = iSelEnd + iSelEndOffset;
|
||||
iSelEndOffset += (movedSelEnd < iPos) ? 0 : cchComment;
|
||||
iSelEndOffset += (movedSelEnd <= iPos) ? 0 : cchComment;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user