When there are a large number of bookmarks - toggle_bookmark does not work on some of the bookmarks. On others it does.
Steps to reproduce:
- Load a large file such as âKey Bindings - Defaultâ
- In the console enter (this will result in many matches which is what we want):
RegionsResult = sublime.active_window().active_view().find_all("{", sublime.IGNORECASE | sublime.LITERAL) - In the console enter (this will add bookmarks to all the matches):
sublime.active_window().active_view().add_regions(âbookmarksâ, RegionsResult, âbookmarksâ, âbookmarkâ, sublime.HIDDEN | sublime.PERSISTENT) - Try to do âtoggle_bookmarkâ on the lines with bookmarks - as you will see on some of them will work, on some of them will not.
However, if I do the same thing with a smaller file in which it doesnât have that many results, it works fine. So it seems to be a problem when there are a large number of bookmarks set - then âtoggle_bookmarkâ stops working on some of the lines.