geany 2.0 (built on Oct 23 2023 with GTK 3.24.38, GLib 2.78.0)
OS ManjaroLinux 24.1.0 Xahea OS Kernel 6.6.52-1-MANJARO (linux66)
File type *.ino (Arduino IDE 2 code file)
After some extensive editing, user logged-off to return to log-in screen, with OS set to save session for future logins.
Immediately logged back in, saved session was returned to, Geany opened correctly, bringing the cursor to the same position immediately prior to where editing began.
The file had not been saved by the logging out process and all changes to the file are lost.