Closed levouh closed 2 years ago
I think the solution should be to instead prevent multiple bookmarks on the same line. Is there a particular reason/workflow that necessitates being able to set multiple bookmarks on a single line?
Zero reason, just happened to do it when trying to figure out how the plugin works on accident.
There might be use cases where people would want to mark a buffer local and then a group mark on the same line though (think namespaces, like working on the same file for two different reasons and easier to mentally group them like this). However I can't imagine there is a case for multiple marks in the same group, at the very least.
Marking a group on a given line multiple times, say
m0m0
puts two virtual text instances. Them doingdm0
on the same line will delete the sign and only one of the virtual text groups.