Auto session save break cursor position saving and other view/doc specific stuff du
Steps to reproduce:
- Open a file and set your cursor to a specific position
- Close the file
- Wait 5 seconds or so (auto save timer wait)
- Reopen the file. Cursor is now at the top again
The problem happens here: KateSessionManager::saveSessionTo(KConfig *sc)
. It deletes all [Viewspace 0 file://xyz]
entries (and more) because it thinks they are useless.
The logic seems bogus if we take autosaving into consideration, thus I think we need something better here.
related bug https://bugs.kde.org/show_bug.cgi?id=482018