mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 06:14:47 +02:00
parent
24d3a69f0f
commit
a67a5f7170
@ -1654,6 +1654,11 @@ void Notepad_plus::command(int id)
|
|||||||
_pEditView->execute(SCI_GOTOPOS, braceOpposite);
|
_pEditView->execute(SCI_GOTOPOS, braceOpposite);
|
||||||
else
|
else
|
||||||
_pEditView->execute(SCI_SETSEL, std::min<intptr_t>(braceAtCaret, braceOpposite), std::max<intptr_t>(braceAtCaret, braceOpposite) + 1); // + 1 so we always include the ending brace in the selection.
|
_pEditView->execute(SCI_SETSEL, std::min<intptr_t>(braceAtCaret, braceOpposite), std::max<intptr_t>(braceAtCaret, braceOpposite) + 1); // + 1 so we always include the ending brace in the selection.
|
||||||
|
|
||||||
|
// Update Scintilla's knowledge about what column the caret is in, so that if user
|
||||||
|
// does up/down arrow as first navigation after the brace-match operation,
|
||||||
|
// the caret doesn't jump to an unexpected column
|
||||||
|
_pEditView->execute(SCI_CHOOSECARETX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user