mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 13:24:42 +02:00
Fix sorting failure in zero-length column mode selection
Support thin rectangular by sort commands. Ref: https://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONMODE Fix #12299, close #12595
This commit is contained in:
parent
c63cc6f219
commit
f6d36235cd
@ -650,7 +650,7 @@ void Notepad_plus::command(int id)
|
||||
bool hasLineSelection = false;
|
||||
if (_pEditView->execute(SCI_GETSELECTIONS) > 1)
|
||||
{
|
||||
if (_pEditView->execute(SCI_SELECTIONISRECTANGLE))
|
||||
if (_pEditView->execute(SCI_SELECTIONISRECTANGLE) || _pEditView->execute(SCI_GETSELECTIONMODE) == SC_SEL_THIN)
|
||||
{
|
||||
size_t rectSelAnchor = _pEditView->execute(SCI_GETRECTANGULARSELECTIONANCHOR);
|
||||
size_t rectSelCaret = _pEditView->execute(SCI_GETRECTANGULARSELECTIONCARET);
|
||||
|
Loading…
x
Reference in New Issue
Block a user