mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 23:05:13 +02:00
Fix deleting in column mode also delete an unexpected EOL
Fix #14426, close #14536
This commit is contained in:
parent
19c6489a9a
commit
dc6f6d1103
@ -592,7 +592,9 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
|
||||
if (nbCaseForScint)
|
||||
_callWindowProc(_scintillaDefaultProc, hwnd, Message, wParam, lParam);
|
||||
|
||||
// then do our job, if any
|
||||
// then do our job, if it's not column mode
|
||||
if (!isColumnSelection)
|
||||
{
|
||||
for (const auto& i : edgeOfEol)
|
||||
{
|
||||
// because the current caret modification will change the other caret positions,
|
||||
@ -604,6 +606,7 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
|
||||
execute(SCI_SETSELECTIONNSTART, i._selIndex, posStart);
|
||||
execute(SCI_SETSELECTIONNEND, i._selIndex, posStart);
|
||||
}
|
||||
}
|
||||
|
||||
execute(SCI_ENDUNDOACTION);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user