Bug 515809

Summary: Cursor position is forgotten for files not visited during a session
Product: [Applications] kate Reporter: wojablonski
Component: sessionsAssignee: KWrite Developers <kwrite-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 25.12.2   
Target Milestone: ---   
Platform: EndeavourOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description wojablonski 2026-02-10 09:44:35 UTC
SUMMARY
Cursor position is forgotten for files that were not visited during a session

STEPS TO REPRODUCE
1. Set "Load last used session" option in Session > Application startup behaviour 
2. Open 3 long files (A, B, C), scroll them to bottom, place the cursor around there 
3. Close and reopen Kate. View/visit/activate files B and C. Do not view file A
4. Close and reopen Kate

OBSERVED RESULT
Cursor and scroll position in file A are reset to top. For files B and C they are correctly remembered

EXPECTED RESULT
Cursor and scroll position should be remembered for all open files, even if they were not viewed in a while

SOFTWARE/OS VERSIONS
Linux: EndevourOS/Arch Current
WM: Sway
KDE Plasma Version: no Plasma
KDE Frameworks Version: ?
Qt Version: 6.10.2

ADDITIONAL INFORMATION
This bug has been present for half a year at least
Comment 2 Waqar Ahmed 2026-02-10 10:22:42 UTC
Can confirm
Comment 3 Bug Janitor Service 2026-02-10 13:23:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/2035