@argumentum,
My guess is that the shown last line gives that error message when Enter is given or simply doesn't do anything, as that is when autoIndent.lua does its work....... but you have seen the difficulty to get strait answers to questions asked or task to perform, which makes it totally impossible for me to debug things.... and I won't be trying to set my windows to chinees in an effort to try and replicate these issues. ....
So, either somebody stops by that has these issues and can help debugging or else "it is what it is".