Mono-D icon indicating copy to clipboard operation
Mono-D copied to clipboard

strange indentation bug when pasting code

Open extrawurst opened this issue 9 years ago • 5 comments

let us cut out the marked code... image

and insert it above... image

..WAT

extrawurst avatar Nov 27 '14 14:11 extrawurst

and of course no sample code to try it on my own :wink: Just c&p'd some code and couldn't find any problems.

aBothe avatar Nov 27 '14 23:11 aBothe

yeah guess what in contrast to most of my other issue reports there is no code attached cause it happens just in that file of a closed source project...

extrawurst avatar Nov 28 '14 10:11 extrawurst

I've attempted now several things with pasting

doThis("asd");

if(das)
{
    foo();
}
else if(1)
{
    fooz("");
}
else if(2)
{
    fooy();
}

from indented into other indented code parts..no luck. Can you reproduce this issue instead?

aBothe avatar Nov 28 '14 11:11 aBothe

Looks similar to the indentation issue I have been having, where the default indent goes way up at the bottom of files with 2000+ LOC mostly. Forces me to move code in separate files and use template mixins.

etcimon avatar Nov 28 '14 12:11 etcimon

Like I said, I can reproduce it everytime in the case above, but I cannot supply the code to do so and simple repros like yours did not work for me either. one note though: there seems to be some indent counter that gets totally fucked up in those scopes. With every enter I press the indent gets increased. even if i delete the whole lines that got added this way the next enter jumps right to zillions indent to the right...

extrawurst avatar Nov 28 '14 12:11 extrawurst