partially fixed case indentation

Note that insertion mode still doesn't work correctly.