[IDE Bug] Indentation faulty - after pressing 'Enter'.
Posted: Tue Aug 15, 2017 11:03 pm
Info: I have defined indentation-keywords for ";>" (+2 after) and ";<" (-2 after)
If you write a new Line with an indentation Marker (";>") and press 'Enter', the cursor jumps to the correct position (+2 tabs).
But if you type something and press 'Enter', the line will be indented wrong (indentation jumps back to beginning of the previous line, but only after the 2nd indentation).
If you reformat the Code with 'Ctrl-I', it indents the text right, but if you hit enter after an indentation-marker, it messes up the code again as described above (cursor position is right first, but if you press 'enter', the indentation is wrong again).
Type in the following code:
it will be formatted like this (as you can see - 1st indentation is correct, 2nd, 3rd, ... indentation is wrong) :
after reformat (Ctrl+I) it will be formatted correct:
But as soon as you edit this correct indented text, the indentation will get messed up again.
Can anyone confirm this?
If you write a new Line with an indentation Marker (";>") and press 'Enter', the cursor jumps to the correct position (+2 tabs).
But if you type something and press 'Enter', the line will be indented wrong (indentation jumps back to beginning of the previous line, but only after the 2nd indentation).
If you reformat the Code with 'Ctrl-I', it indents the text right, but if you hit enter after an indentation-marker, it messes up the code again as described above (cursor position is right first, but if you press 'enter', the indentation is wrong again).
Type in the following code:
Code: Select all
;>
a
;>
b
;>
c
;<
d
;<
e
;<
f
Code: Select all
;>
a
;>
b
;>
c
;<
d
;<
e
;<
f
Code: Select all
;>
a
;>
b
;>
c
;<
d
;<
e
;<
f
Can anyone confirm this?