Re-Indent should put cursor to the beginning of the line if it was before the beginning

Originator:an00na
Number:rdar://32660441 Date Originated:32660441
Status:DUPLICATE OF 32375116 OPEN Resolved:
Product:Developer Tools Product Version:9.0 beta (9M136h)
Classification:UI/Usability Reproducible:Always
 
Summary:
Before Xcode 9, Re-Indent puts the cursor to the beginning of the line *if it was before the beginning* before indention, which makes it easy to subsequently edit code at the beginning of the line. Now in Xcode 9, the cursor is indented with same relative movement as the code which is not a useful behavior. I think it is a regression.

Steps to Reproduce:
1. Find any line of code with some space before its final indented beginning.
2. Pus cursor at the beginning of the space before the line.
3. Re-Indent. Notice the cursor doesn't move to the beginning of the code.

Expected Results:
The cursor moves to the beginning of the code.

Observed Results:
The cursor doesn't move to the beginning of the code.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!