Respect the active region when indenting.

This fixes #8634.