Bug 515809 - Cursor position is forgotten for files not visited during a session
Summary: Cursor position is forgotten for files not visited during a session
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: sessions (other bugs)
Version First Reported In: 25.12.2
Platform: EndeavourOS Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-10 09:44 UTC by wojablonski
Modified: 2026-02-10 13:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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