From 3665d7e88762309e8858a9bb34b641ce72588791 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Thu, 20 Jul 2017 11:53:06 +0200 Subject: [PATCH] don't close phantom on action, + statusbar message --- git-blame.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/git-blame.py b/git-blame.py index d17539a..5b5a658 100644 --- a/git-blame.py +++ b/git-blame.py @@ -107,13 +107,15 @@ def on_phantom_close(self, href): if intent == "copy": sublime.set_clipboard(sha) + sublime.status_message('Git SHA copied to clipboard') elif intent == "show": desc = self.get_commit(sha, self.view.file_name()).decode('utf-8') buf = self.view.window().new_file() buf.run_command('insert_commit_description', {'desc': desc}) - - self.view.erase_phantoms('git-blame') - + else: + self.view.erase_phantoms('git-blame') + else: + self.view.erase_phantoms('git-blame') def run(self, edit): phantoms = []