Preserve selection after indenting
Amend c07ddbbf43f00887f09ea8d01faedb00acd1a018

Issue #2715