This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17.4k
indentation being changed on paste despite auto indent on paste unchecked #10407
Labels
Comments
Was able to reproduce this. Thanks @pknowles! |
Aakash1312
added a commit
to Aakash1312/atom
that referenced
this issue
Jan 21, 2016
indentation being changed on paste despite auto indent on paste unchecked. atom#10407
seems this is a dup and can be closed: atom/language-clojure#34 |
Still experience this in 1.7.2. There's also another effect which seems to be related:
Selecting one line up from the end of
|
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have both Editor Settings->Auto Indent and Editor Settings->Auto Indent On Paste unchecked and start with a new plain text file (using hard tabs):
where
two
is indented with a tab. I place the cursor at the end oftwo
, hold shift, press up and copy the selection. This should copy a newline character, a tab character and the wordtwo
, i.e."\n\ttwo"
. Then I paste, and get this:somehow an extra tab has been injected. Additional pasting increases the indentation even further! I expected this:
Interestingly, if
one
is also indented before copying, the correct behaviour is observed. It's as though atom is counting the difference in indentation between the lines selected when the text is copied. Personally I hate anything that tries to be too fancy and automatic, and it is far more frustrating to me than the times when something could have predicted what I wanted and didn't.The text was updated successfully, but these errors were encountered: