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

bugfix

Scenario:

  • get 2 copies of a note on screen at once (say by running 'extract' on a note at the top of recent changes)
  • click on one of them to focus cursor on it
  • press ctrl-e to edit then again to stop editing
  • press ctrl-e again to edit, then hit enter

Before this commit the app would crash on an assertion failure; a pane's line and line_cache were no longer in sync.

I'm fixing it by reloading all other copies of a pane from disk immediately after writing it to disk. Which may well be massively slower, but is a) likely cached by the OS, and b) not noticeable.

This bug has likely been present since 2022-11 (commit 813e06fd4d).

Created by  Kartik K. Agaram  on March 28, 2023
ONVQPNBJRWL3VLMV3UJGQOKR26GELHHOUZ7F3ISVVY6ET6OVITOQC
Change contents