@Evelyn-Walker ,
I tested the behavior you described. In Notepad++ the Ctrl+L (Delete Line) command
That is wrong terminology, as already described above. Ctrl+L is Line Cut, not Line Delete. To use the wrong terms causes confusion for everyone. From the OP, it was acceptible, because they didn’t know better. But to post like you are an authority, but to use the incorrect terminology, is detrimental to yourself and anyone who reads the answers here.
internally performs a cut-like operation,
Of course it does. It’s literally Line Cut, so it definitionally affects the clipboard
which means the deleted line is temporarily placed into the clipboard.
It’s no more “temporarily” on the clipboard than any Ctrl+C or Ctrl+X is “temporarily” in the clipboard. It’s in the clipboard until something else replaces it, just like every other clipboard action.
Use Ctrl+Shift+L (if configured) or another plugin/command that deletes the line without copying it.
Did you come up with that alternative all on your own, or did you just reiterate what @guy038 and I had already said?
Alternatively, copy the text again after performing line deletions if you still need it in the clipboard.
That’s horrible advice.
If preserving clipboard content during line deletion is important, it could be considered as a feature request rather than a bug.
No it couldn’t, because the feature already exists. Line Delete already exists as Ctrl+Shift+L: use Line Delete if you don’t want to affect the clipboard, and Line Cut if you do want to affect the clipboard.
@Evelyn-Walker , make sure you are not using LLM or GPT or any other AI to write your posts for you: that’s expressly forbidden in this forum.