Fix undesirable selection-mangling in indentLine

Issue #1910