Fix deleting in column mode also delete an unexpected EOL

Fix #14426, close #14536
pull/14544/head
Don Ho 11 months ago
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…
Cancel
Save