From ff4b761d879e0277afd88b66a46dcdaccd862eb9 Mon Sep 17 00:00:00 2001 From: roodq3 Date: Tue, 14 Aug 2012 22:57:57 +0800 Subject: [PATCH] Update vintage.py --- vintage.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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