Bug 407602

Summary: Running "git stash ; git stash pop" clears bookmarks in modified files
Product: [Applications] kate Reporter: nfxjfg
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description nfxjfg 2019-05-16 14:46:42 UTC
SUMMARY

Running "git stash" to remove something, testing something, and then "git stash pop" (all even without necessarily returning to the editor) can be common during development. Unfortunately, if bookmarks are set on any modified lines (and other lines), the bookmark is removed as kate refreshes due to the "git stash".

This is a regression since kate has changed to always reload files managed by git without user interaction. If my memory doesn't trick me, before this change you could just not reload the files until you've run "git stash pop".

STEPS TO REPRODUCE
1. Open a file managed by git
2. Add a new line with some text, set a bookmark on it
3. Also set a bookmark on a line after the new one
4. Run "git stash"
5. Run "git stash pop"

OBSERVED RESULT
The bookmarks disappear in step 4.

EXPECTED RESULT
The bookmarks don't disappear, or reappear after step 5.
Comment 1 Waqar Ahmed 2022-10-03 20:05:56 UTC

*** This bug has been marked as a duplicate of bug 448655 ***