With a very long line extending beyond the visible area, suppose you are near the beginning, and press Cmd-[ to indent the line. The indentation works correctly, and the cursor position is correctly preserved, but the focus shifts to the end of the line (which is so far right that the beginning of the line is then invisible.
You're right, this is unpleasant. I'll try to fix this.
This is fixed. The [text replace] command has a nice -preserve option which prevents the focus to move.
Changes committed to the repository (rev. 1790).