Mono-D
Mono-D copied to clipboard
strange indentation bug when pasting code
let us cut out the marked code...
and insert it above...
..WAT
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.
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...
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?
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.
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...