Fix: Exception when decreasing indent.

Fix to prevent an exception when decreasing indents if the length
of the last line of file is less than the indent width.
Added test for "Decrease Indent with 1 char on the last line"
See #1271