Xcode8: Same bytes have different line selection behavior

Originator:markd
Number:rdar://27163268 Date Originated:7/4/2016
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.0 beta (8S128d)
Classification:UI/Usability Reproducible:Sometimes
 
Summary:
I was wanting to select a single line of code, so I triple-clicked it.

Xcode decided to select it, and the next line of code.

Another line selected correctly with triple-clicking.

No difference in the newline characters in the source file.  If I remove the newline between the two lines and replace it with an identical newline, it works ok.

undoing restores the bad behavior.

Attached is a movie showing the problem.
attached is a screen shot of the hexdump showing the identical newlines throughout the file 
attached is the project showing the problem.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Version 8.0 beta (8S128d)
10.11.4 (15E65)


Notes:
It's really not that big a deal - just avoid selecting lines or getting used to editing out chunks of the selection, but
when it happens day-in, day-out, it's just another heavy-sigh
death-of-a-thousand-cuts that makes using Xcode unpleasant.

Configuration:


Attachments:
'Screen Shot 2016-07-04 at 6.13.07 PM.png', 'selection-wtf.mp4' and 'ObjCInterop.zip' were successfully uploaded.

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!