auto-indent: cleanup backward_to_first_char()

Just make this a bit more readable.