Skip to content

Commit 5b0a473

Browse files
committed
Fix the BlameEraseAll command not erasing VIEW_SETTING_PHANTOM_ALL_DISPLAYED
1 parent b8fd48f commit 5b0a473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blame_all.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def run(self, edit):
3535
# If they are currently shown, toggle them off and return.
3636
if self.view.settings().get(VIEW_SETTING_PHANTOM_ALL_DISPLAYED, False):
3737
self.phantom_set.update(phantoms)
38-
self.view.settings().set(VIEW_SETTING_PHANTOM_ALL_DISPLAYED, False)
38+
self.view.settings().erase(VIEW_SETTING_PHANTOM_ALL_DISPLAYED)
3939
self.view.run_command("blame_restore_rulers")
4040
return
4141

@@ -112,6 +112,7 @@ def run(self, edit):
112112
"""Erases the blame results."""
113113
sublime.status_message("The git blame result is cleared.")
114114
self.view.erase_phantoms(PHANTOM_KEY_ALL)
115+
self.view.settings().erase(VIEW_SETTING_PHANTOM_ALL_DISPLAYED)
115116
self.view.run_command("blame_restore_rulers")
116117

117118

@@ -127,7 +128,6 @@ def is_applicable(cls, settings):
127128
def on_modified_async(self):
128129
"""Automatically erases the blame results to prevent mismatches."""
129130
self.view.run_command("blame_erase_all")
130-
self.view.settings().erase(VIEW_SETTING_PHANTOM_ALL_DISPLAYED)
131131

132132

133133
class BlameRestoreRulers(sublime_plugin.TextCommand):

0 commit comments

Comments
 (0)