Revert "Fix #311 autoindent problem"

This reverts commit 9d47ef5f535bd70bf1914ae9aca8b89d2ea38c98.
Improve indent behavior by@wilywampa