Scenario: I have longer line/paragraph that is wrapped and spans multiple lines. I put cursor somewhere inside that paragraph.
Is it possible to get start and end positions of that line (not start and end of the paragraph)?
I am almost certain api doesn’t support it, but is there a hacky way to get this?
In word processors Home and End buttons won’t move to the start/end of the paragraph, but start/end of the onscreen line. I’d like to mimic that functionality with cm.