| Summary: | kate does not remember the cursor position of last view or edit | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Wolfgang Bauer <wbauer1> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | a.samirh78, justin.zobel, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 18.12.0 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Wolfgang Bauer
2019-01-05 17:20:03 UTC
It seems this issue is caused by this commit: https://cgit.kde.org/kate.git/commit/?id=e3ece7bd45d2743b3c36ad856abd12ac9ba282d6 closeDocument(untitledDoc) isn't called, so this chain doesn't happen: KateDocManager::documentsDeleted -> KateViewManager::documentsDeleted -> KateViewManager::createView, the latter calls KTextEditor::View::readSessionConfig() to restore the cursor position. (In reply to Ahmad Samir from comment #1) > It seems this issue is caused by this commit: > https://cgit.kde.org/kate.git/commit/ > ?id=e3ece7bd45d2743b3c36ad856abd12ac9ba282d6 > > closeDocument(untitledDoc) isn't called, so this chain doesn't happen: > KateDocManager::documentsDeleted -> KateViewManager::documentsDeleted -> > KateViewManager::createView, the latter calls > KTextEditor::View::readSessionConfig() to restore the cursor position. I have confirmed this is still an issue. Ahmad would you be interested in providing a patch to fix this behaviour? If you would like to submit a merge request to fix it, you can do so here: https://invent.kde.org/utilities/kate/-/merge_requests Can someone test if this bug is still present? Since the referenced commit got mostly reverted and I can no longer reproduce this bug => fixed |