Inline change viewer doesn't respect tab width

Originator:jediknil
Number:rdar://FB7549104 Date Originated:2020-01-23
Status:Open Resolved:
Product:Xcode Product Version:11.3.1 (11C504)
Classification:Incorrect/Unexpected Behavior Reproducible:
 
# Please list the steps you took to reproduce the issue:

0. Set your tab width to 2 spaces (Xcode > Preferences > Text Editing > Indentation)
1. Make a new project in a git repo.
2. Add a file that uses tabs for indentation, and commit it.
3. Change one of the lines that has tabs in it.
4. Click on the change bar on the left of the editor and choose “Show Change”

# What did you expect to happen?

The tabs in the old code and the new code both use 2 as the indent width.

# What actually happened?

The tabs in the old code use 4 as the indent width. The new code correctly uses 2.

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!