Use buffer.line_indentation[] rather than duplicating the functionality
manually.