Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Ctrl+Shift+D deleting the penultimate line also merges two lines

Open Rangi42 opened this issue 1 year ago • 1 comments

Version: Notepad3 (x64) 6.24.309.1 rc3

Open a new window, and type these lines:

aaa
bbb
ccc
ddd

Put the cursor anywhere on the ccc line and press Ctrl+Shift+D.

What I expect:

aaa
bbb
ddd

What I get:

aaa
bbbddd

This happens with both LF and CR+LF line ending settings.

Rangi42 avatar Mar 10 '24 13:03 Rangi42

What I get:

aaa
bbbddd

I confirm, it's a very old bug. 🤔

This bug started with version: Notepad3 6.23.502.1 beta

  • [.502.1]- Multi-replace: correct advance next insertion point in case of SCI_REPLACETARGETMINIMAL.
  • [.502.1]- Cut (Ctrl+X) and Delete (Ctrl+Shift+D) last line (EOF -> EOL).
  • [.502.1]- Minor bugs in "Reset Notepad3's settings and themes" (SUP).

In addition:

  • The bug only appears if the last line has no CRLF. 🤔

2024-03-10_225107

  • If delete (Ctrl+Shift+D) is applied on the last line with a CRLF, it deletes 2 lines (lines 4 and 5). 🤔

2024-03-10_225624

  • If line 3 is selected, it delete (Ctrl+Shift+D) 2 lines (lines 3 and 4). 🤔

2024-03-11_065806

hpwamr avatar Mar 10 '24 19:03 hpwamr