Fork of lines.love without drawings; useful starting point for further forks

get rid of bring_cursor_column_on_screen entirely

It's just a footgun. Any time you call it you risk the cursor pane being out of viewport. bring_cursor_of_cursor_pane_in_view is always safe and always a safe replacement.

Looks like the timeline was

  • On 2022-08-02 I introduced bring_cursor_column_on_screen()
  • On 2022-08-11 I introduced bring_cursor_of_cursor_pane_in_view()

And I didn't notice that the latter obviates the former. Or perhaps I thought the former was more efficient in some situations, and didn't notice that it can put us in an invalid state.

Created by  akkartik  on November 2, 2024
T2GN62QE2TB76IJYJ4HNR2Z4CP7KB7GOZ5THDZ5RGMJBSAD72MCQC
Change contents