+fix: delete line (Ctrl+Shift+D) - fix last line handling

This commit is contained in:
METANEOCORTEX\Kotti 2024-07-04 00:26:08 +02:00
parent 11ed965747
commit f3965dc14b

View File

@ -5343,9 +5343,10 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
case IDM_EDIT_DELETELINE: {
bool const bInLastLn = Sci_InLastLine();
UserMarkerDeleteAll(Sci_GetCurrentLineNumber());
SciCall_LineDelete();
if (Sci_InLastLine()) {
if (bInLastLn) {
SciCall_DeleteBack();
SciCall_Home();
}