Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix buffer delete mode not persisting removals #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justicenyaga
Copy link

@justicenyaga justicenyaga commented Oct 22, 2024

I noticed that buffer delete mode does not persist deleting multiple entries when one quits nvim immediately after deleting several bookmarks. In such cases, the plugin will persist deleting only the first entry while retaining the rest.

How to reproduce:
Add several bookmarks (more than 1)
Enter buffer delete mode, delete more than 1 entry
Quit nvim
Open nvim again and open the buffer you deleted the marks on.

You'll notice that only one selected mark was deleted from the cache file.

This PR fixes this issue by making buffer_persist.remove take a table (delete_mode) or a single index for other circumstances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant