Fix deleting in column mode also delete an unexpected EOL

Fix #14426, close #14536
This commit is contained in:
Don Ho 2023-12-31 20:14:35 +01:00
parent 19c6489a9a
commit dc6f6d1103

View File

@ -592,7 +592,9 @@ LRESULT ScintillaEditView::scintillaNew_Proc(HWND hwnd, UINT Message, WPARAM wPa
if (nbCaseForScint) if (nbCaseForScint)
_callWindowProc(_scintillaDefaultProc, hwnd, Message, wParam, lParam); _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) for (const auto& i : edgeOfEol)
{ {
// because the current caret modification will change the other caret positions, // 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_SETSELECTIONNSTART, i._selIndex, posStart);
execute(SCI_SETSELECTIONNEND, i._selIndex, posStart); execute(SCI_SETSELECTIONNEND, i._selIndex, posStart);
} }
}
execute(SCI_ENDUNDOACTION); execute(SCI_ENDUNDOACTION);