I've tried both and a few random inputs, and they seem to produce the same result (they return a list of regions which make up each line in my original region).
What am I missing?
this [is a line
this is] a line
# [..] denotes the visual selection
>>> view.splitByNewlines(view.sel()[0])
[(5, 14), (15, 20)]
>>> view.lines(view.sel()[0])
[(0, 14), (15, 29)]Users browsing this forum: No registered users and 2 guests