-
Notifications
You must be signed in to change notification settings - Fork 305
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
Pasting multiline code conflicts with parentheses/brackets/brace-matching key handler #735
Comments
Is it possible this is a profile difference? The first line Same thing happens with me in all platforms with that key handler registered. |
Great sleuthing, thank you. Indeed, that was the problem and with that key handler in place it indeed also happens on Windows. Is there a way we can have our cake and eat it too? I would't want to have to choose between the two features (pasting multiline snippets vs. paren/bracket/brace matching). Or can you for technical reasons not tell the difference between code being typed vs. being pasted? |
That's right unfortunately, unless the paste is handled via a key handler. #579 is tracking that. |
Thanks, @SeeminglyScience - I've added a comment there and I'm closing this. |
Substantially revised after feedback from @SeeminglyScience.
Environment data
Steps to reproduce or exception report
If you have a key handler installed that inserts a matching parenthesis/bracket/brace, pasting multiline strings breaks:
{ 'hi' }
results in:
It seems that pasting triggers the same behaviors as when typing, which is undesired.
That is, the
{
that is pasted on the first line causes a matching}
to be inserted, which breaks the code.The text was updated successfully, but these errors were encountered: