SlickEdit Community
Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2019 v24 Beta Discussion => Topic started by: jc44 on August 08, 2019, 03:33:47 pm
-
Win 10 x64, Brief emulation. In this code snippet:
#include <stdio.h>
int main(int argc, char*argv[])
{
if (argc == 1)
printf("Argc == 1\n");
printf("...\n");
{
printf("Braces\n");
}
}
If I block copy the 3 lines of the "braces" block to the line below 'printf("Argc == 1\n");' then it ends up indented too far (in line with that printf). If I just copy the 'printf("Braces\n")' line to the same place then the indent is correct.
Regards
JC
-
Still in B3
-
Interesting. Doesn't happen if something that is unbraced is pasted. Looking into this.
-
Fixed for beta 4
-
Yup - thanks - got another one though :-)
int main(int argc, char *argv[])
{
if( 1 )
{
if( 1 )
exit(0);
} else
printf("Oops\n");
}
Any paste after the final printf is indented too far. If the "else" is on the next line rather than on the same line as the "}" then the issue goes away.
-
I'll see if we can improve this. Smart indenting with Enter isn't handling this right so I'm not surprised smartpaste isn't working either
-
Fixed for next build