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
Remove line breaks from Alt+M #173
Comments
The actual task is: to fix "paste from clipboard" functionality for these input fields. But I can't reproduce specified behavior in my environment. My local tests in XP, 7 and 10 always give me the correct results. I've found the only way to reproduce the issue: manually setup text values in the debugger. |
It only works if line ending style is CRLF. Try this:
Instead of 3 lines you now have 6 lines. Switch back to CRLF - this doesn't happen. |
Fixed. |
Isn't it simpler to just ignore \r \n after actual submission, without this magic with subclassing and WM_PASTE interception? When I have \r \n I don't see any difference in the text inputs, it doesn't really interfere in the dialog itself. |
Here are the points:
|
Document:
Press Ctrl+C to copy
1\n
to clipboard, do Alt+M, Ctrl+V intoPrefix text to lines
. Expected result:Actual result is different. Now do the same but Ctrl+V into
Append text to lines
- expected:Again, result is different.
Solution: apply the same normalization as in #121 - remove
\r \n
from these two input values.The text was updated successfully, but these errors were encountered: