For some filetypes (more specifically some Scintilla lexers) it might happen that an event with modificationType SC_MOD_CHANGEMARKER is sent and so the current line is added as bookmark again. To avoid this, check if the current line has already a bookmark and update it in this case.
Might be related to #964. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1040
-- Commit Summary --
* Addons: Bookmarks: Prevent duplicating bookmarks when editing line
-- File Changes --
M addons/src/ao_bookmarklist.c (26)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1040.patch https://github.com/geany/geany-plugins/pull/1040.diff
To test: set a bookmark in a C file, find the bookmark in the bookmark list sidebar, edit the bookmark line and see how the bookmark is duplicated in the list.
*friendly-ping*
Merged #1040 into master.
github-comments@lists.geany.org