Relocate buffer view when reloading file by dmaluka · Pull Request #3250 · micro-editor/micro (original) (raw)
The relocation now really takes place, which is a great improvement, but...
However, if the user's click lands within a region that falls outside the bounds of the file after the reload (because the external modification reduced its size), a crash occurs.
...in the moment a mouse click is performed into a second instance of micro you can't scroll up or down, till you perform a second click somewhere. The latter one will create unintended selections too. In the moment the first click is performed to the title bar of the terminal, in which micro is displayed, then scrolling via mouse is possible again.
So we definitely have solved the most of the initial problems, but didn't restored the full functionality in this scenario yet.