1
c-ts-mode issue
(alien.top)
I cannot reproduce this. Maybe the surrounding code in your case caused what you describe, but if I take a valid C function and insert if (whatever == -1)
into it, then after typing RET
, the next line will be indented as expected.
Emacs has electric-indent-chars
. Whenever a character in this set is pressed, Emacs re-indents the current line. And as the indentation calculation is not perfect, it can happen that when you create a new line, its indentation calculated incorrectly, and during editing you press some electric-indent-char, which then re-indents the line.
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!