AutoIndent in comment: fix bug if cursor at block end