Open ogdenwebb opened 6 years ago
put (electric-indent-mode 0)
from your nim-mode-hook
. Electric indent has more severe problems thas this. Sometimes it blocks emacs for several seconds and then automatically screws up the entire file. It's not worth the trouble.
@krux02 it doesn't change anything for me. With enabled and disabled electric-indent-mode in nim-mode hook the issue appears here.
As a sidenote, nim-indent-calculate-indentation returns 0 on the third line of code.
@ogdenwebb you are totally right, I just tested it. My recommendation is to use var
on every line. This doesn't fix but it makes the bug non relevant.
var x, y: string
var a, b: float
Conforming Bugs
Please tell us below:
*Messages*
buffer? No.Expected behavior:
Actual behavior:
But with a value it works well: