Clipboard content is lost after using Ctrl+L (Delete Line)
-
I believe there is a bug related to the clipboard.
Steps to reproduce:
- Select some text in Notepad++.
- Press Ctrl+C to copy it to the clipboard.
- Move the cursor to any line.
- Press Ctrl+L (Delete Line).
Expected result:
The clipboard content should remain unchanged.Actual result:
The clipboard content becomes empty and the previously copied text is lost.Notes:
The issue happens even if Ctrl+L is used only once after copying.
It seems that deleting a line clears the clipboard content.Environment:
Notepad++ version: 8.9.1 (64bit)
OS: Windows 10 -
Hello, @mateusz-kowalski and All,
By default, the
Ctrl + Loperation is a Scintilla command which just CUT the current line contentsThus, obviously, a
Ctrl + Voperation just restores this cut line
If you need to preserve the previous status of the clipboard, use, first, the default
Ctrl + Shift + Lshortcut which deletes the current line contentsThen, the use of the
Ctrl + Voperation will correctly paste the clipboard contents !Best Regards,
guy038
-
@Mateusz-Kowalski said:
The clipboard content becomes empty
It’s probably not empty.
It probably contains a single line-ending.
You likely moved your caret to a line with no content, before issuing the Ctrl+L. -
Okay thx. I understand, sorry for the false alarm.
Best Regards,