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

copying 0x00 still replaces with 0x20 #72

Open
karl-police opened this issue Aug 24, 2022 · 4 comments
Open

copying 0x00 still replaces with 0x20 #72

karl-police opened this issue Aug 24, 2022 · 4 comments

Comments

@karl-police
Copy link

copying 0x00 still replaces with 0x20

@MxReaper
Copy link

Yes this is happening.

@karl-police
Copy link
Author

Yes this is happening.

I saw this and looked at this issue's description again, and see that I never explained it so well.

@unlimitedjonas
Copy link

Yeap, I have same issue here, and I send an email to author, but he didn't response and the bug still there.

@yuhaim
Copy link

yuhaim commented Feb 7, 2025

The cause of this issue is that this plugin does not handle copy itself. Instead, it calls the main editor

"notepad-plus-plus\scintilla\src\Editor.h"

within which exists a fix for ASCII contents

 	void FixSelectionForClipboard() {
		// To avoid truncating the contents of the clipboard when pasted where the
		// clipboard contains NUL characters, replace NUL characters by spaces.
		std::replace(s.begin(), s.end(), '\0', ' ');
	}

So, comment this replace line inside scintilla if you need to fix this issue.

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

No branches or pull requests

4 participants