Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I have no choose in new line and copy(Ctrl+c),It will copy something #2994

Closed
vvyoko opened this issue Dec 3, 2020 · 5 comments
Closed
Labels

Comments

@vvyoko
Copy link

vvyoko commented Dec 3, 2020

When there is already a line in the file and switch to the next line,it will copy something

Like the picture
the tips is what I copy,
I send 4 CTRL+C
1 > 123
2 > "something"
3 > "something"
4, I del all,and CTRL +C again ,it dont copy anything
1

I use AutoHotkey to check it

OnClipboardChange:
ToolTip, %clipboard% ;
SetTimer, ToolTipoff, 1000
return

@vvyoko
Copy link
Author

vvyoko commented Dec 3, 2020

the ahk code have something dont put

all:

OnClipboardChange:
ToolTip, %clipboard% ;
SetTimer, ToolTipoff, 1000
return
ToolTipoff:
    ToolTip,
    SetTimer, ToolTipoff, off
Return

@RaiKoHoff
Copy link
Collaborator

RaiKoHoff commented Dec 14, 2020

Hello @vvyoko,
thank you for reporting this issue.
You can also start another instance of Notepad3 to monitor the clipboard (Notepad3.exe /b).

Notepad3's intended behavior of "Copy to Clipboard" (Ctrl+C) while there is no selection is:
Copy current line including the line terminating line-break characters at the end to clipboard.
(Ed.: In case of empty document, there are no line-break characters to copy, so nothing is copied).

Since this is correct behavior (works as designed), sometimes, superfluous line-break characters are copied (resp. added) to clipboard. I will check this.

@vvyoko
Copy link
Author

vvyoko commented Dec 14, 2020

Hello @vvyoko,
thank you for reporting this issue.
You can also start another instance of Notepad3 to monitor the clipboard (Notepad3.exe /b).

Notepad3's intended behavior of "Copy to Clipboard" (Ctrl+C) while there is no selection is:
Copy current line including the line terminating line-break characters at the end to clipboard.
(Ed.: In case of empty document, there are no line-break characters to copy, so nothing is copied).

Since this is correct behavior (works as designed), sometimes, superfluous line-break characters are copied (resp. added) to clipboard. I will check this.

yes,it is CR|LF
but when I setingView-Show Line Endings
if only 1 line,It dont display CR|LF
but if copy will give me a CR|LF

for example
there have line :test
I copy it, then add something like a Tab+test test with ahk
I want get test test
but it will give me

test
	test

I must to replace CR|LF first. or select the word then copy

I mean I don't want to copy the last CR|LF
If I need CR|LF,I will input Enter then copy like copy multiline
multiline dont need the last CR|LF too.

sorry for my bad English,hope you can understand.

have a nice day

@RaiKoHoff
Copy link
Collaborator

RaiKoHoff commented Dec 14, 2020

Related issue #1657:
[Settings2] NoCopyLineOnEmptySelection=true
[Settings2] NoCutLineOnEmptySelection=true

From Scintilla Doc: "...if the selection is empty then the current line is copied. On Windows, an extra "MSDEVLineSelect" marker is added to the clipboard which is then used in SCI_PASTE to paste the whole line before the current line."

I am going to add behavior: If Selection is empty and current line is empty, nothing will be copied to clipboard.

@vvyoko vvyoko closed this as completed Dec 14, 2020
@hpwamr
Copy link
Collaborator

hpwamr commented Dec 14, 2020

Hello @vvyoko ,

Feel free to test the "BETA/RC paf" version "Notepad3Portable_5.20.1214.1_beta.paf" or newer, see below or issue #1129.

"Notepad3Portable BETA/RC paf" version can be used with or without ".7z" extension.
To update your "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC Setup" version "Notepad3_5.20.1211.1_beta_Setup" or newer, see below or issue #1129.

Comments and suggestions are welcome... 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants