diff --git a/vintage.py b/vintage.py index e5413db..1615282 100644 --- a/vintage.py +++ b/vintage.py @@ -1034,9 +1034,10 @@ def run(self, edit, character): class ViSelectBookmark(sublime_plugin.TextCommand): def run(self, edit, character, select_bol=False): - self.view.run_command('select_all_bookmarks', {'name': "bookmark_" + character}) - if select_bol: - self.view.run_command('vi_move_to_first_non_white_space_character') + if self.view.get_regions("bookmark_" + character): + self.view.run_command('select_all_bookmarks', {'name': "bookmark_" + character}) + if select_bol: + self.view.run_command('vi_move_to_first_non_white_space_character') g_macro_target = None