mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+fix: delete line (Ctrl+Shift+D) - fix last line handling
This commit is contained in:
parent
11ed965747
commit
f3965dc14b
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user