Steps to reproduce 1: open a very long HTML-document, so one need to scroll 2: make the sidebar visible 3: make the width of the editor very small (for example just some centimeters), so that the sidebar has a big width 4: put the cursor at the end of the second last line 5: press 2x the shortcut "Toggle Sidebar"
Result The highlighted line is not in the visible area any more. To make it visible one need to scroll or to press the arrow keys on the keyboard.
Expectation The highlighted line and specially the blinking cursor should be exactly at the same visible position where it was just before toggling the sidebar.
Context I use the plugin Geany Preview (it is a fantastic tool for the creation of webpages - the result is shown live in the sidebar) and I wanted to use the shortcut "Toggle Sidebar" many times a day, so it disturbs every time that the highlighted line is not right away in the visible area as it was before toggling.
Remark On an other computer I installed Geany. When I don't change the size of the width of the sidebar after the installation, then everything works perfect. So it seems to be that the issue has to do something with changing size of the width of the sidebar.
System Lubuntu 22.04.1 and Lubuntu 22.10 Geany 1.38 and Geany 1.39