<p dir="auto">Screenshots below, basically when I copy and paste a line of code, I more-often-than-not get this cascading effect that is quite frustrating as I need to realign lines (or blocks) of code when I deliberately copied a prefixed new line so I could just hold paste.</p>
<p dir="auto"><strong>COPY</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e0326be8573b4559b15b0ea4ce509fb17e1331a6b47739ed08de4e4b91445323/687474703a2f2f7075752e73682f687767515a2f623266383832333362632e706e67"><img src="https://camo.githubusercontent.com/e0326be8573b4559b15b0ea4ce509fb17e1331a6b47739ed08de4e4b91445323/687474703a2f2f7075752e73682f687767515a2f623266383832333362632e706e67" alt="" data-canonical-src="http://puu.sh/hwgQZ/b2f88233bc.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>PASTE</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/defe8eeacaae497583ace7eba3c8833987b25e012971e4e8584c91cf2072f8f4/687474703a2f2f7075752e73682f68776754752f333964383536616138382e706e67"><img src="https://camo.githubusercontent.com/defe8eeacaae497583ace7eba3c8833987b25e012971e4e8584c91cf2072f8f4/687474703a2f2f7075752e73682f68776754752f333964383536616138382e706e67" alt="" data-canonical-src="http://puu.sh/hwgTu/39d856aa88.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>EXPECTED</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b7339b4aa7cbe37cf6b3a440887d677d1cf62834bdd103e7e823ad5777fcaadb/687474703a2f2f7075752e73682f68776832422f663932643930343435382e706e67"><img src="https://camo.githubusercontent.com/b7339b4aa7cbe37cf6b3a440887d677d1cf62834bdd103e7e823ad5777fcaadb/687474703a2f2f7075752e73682f68776832422f663932643930343435382e706e67" alt="" data-canonical-src="http://puu.sh/hwh2B/f92d904458.png" style="max-width: 100%;"></a></p>
<p dir="auto">When copying a segment of code that starts with a new-line followed by tabbed-in code while "Auto Indent On Paste" is enabled, consecutive pastes will each be an additional tab deeper. I tested this with C++, Java, and JavaScript which makes me believe it is not a problem with the language specs.</p>
<p dir="auto">Here is an example in the form of an animated gif:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466761/6118758/d4ce2e04-b075-11e4-864b-46726fcd809e.gif"><img src="https://cloud.githubusercontent.com/assets/466761/6118758/d4ce2e04-b075-11e4-864b-46726fcd809e.gif" alt="autoindent-2" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">It isn't just comments that this happens with, but it does require the previous line to be selected. Specifically, this happens when the copy-buffer matches a regex like <code class="notranslate">/^\n\s+[^\s]/</code>. That is, it starts with a newline, followed by one or more whitespace characters and then a non-whitespace character. And the previous line must be a blank line.</p>