Use slice from Rope chunk when possible while iterating lines (#37430)

Release Notes:

- N/A
d7fd5910d7Michael Sloan committed on 9/3/2025, 6:35:31 AM· committed by GitHubparent8d58613
1 file changedLine totals unavailable