-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Conversation
…nteraction with autoIndentOnPaste. I wish the fix were less ugly, but shorter attempts didnt fully function
block appropriately on paste, otherwise keep indentation as normal.
Have you tested this for pasting very large files? It seems as though it may significantly slow down performance as n (str.length) approaches infinity. Raj |
Nope, I pretty much just nicked it from the referenced PR, and haven't given it much testing. I think what you're suggesting would only be an issue with a selection consisting solely of millions of newline characters though. |
Ahh I see, I misread the parameters of the while loop. Looks like a pretty Looks okay otherwise. On Thu, Sep 29, 2016, 5:28 PM patstew [email protected] wrote:
|
Any update on this PR? The indentation problem is quite annoying. |
I've had another go at fixing this - see this package: https://atom.io/packages/fix-indent-on-paste |
Hey @patstew. Apologies for not looking into this on time. I know this PR has been here for a very long time, during that time Atom has seen a number of changes. Due to the changes, this PR has now become outdated. Is it possible for you to resolve the conflicts? |
Thank you for your PR! We haven't gotten a response to our conflict resolution request. I'm going to close this but don't hesitate to reach out if you have or find time to resolve the conflicts, we'll be happy to reopen the PR. |
This is a copy of #11267 with a small addition to prevent one of the tests failing and only change the behaviour when there's a leading newline. Fixes #9045 #5473.