Skip to content

Commit

Permalink
Merge pull request #44 from keithrussell42/topic/compare-command
Browse files Browse the repository at this point in the history
Enable compare when using list of arguments
  • Loading branch information
braver authored Sep 7, 2022
2 parents cac80ef + 19fa0db commit 6246f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SideBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def make_dirs_for(filename):
class SideBarCompareCommand(sublime_plugin.WindowCommand):

def is_visible(self, paths):
return len(paths) == 2 and get_setting(self, 'difftool')
return len(paths) == 2 and bool(get_setting(self, 'difftool'))

def is_enabled(self, paths):
if len(paths) < 2 or not get_setting(self, 'difftool'):
Expand Down

0 comments on commit 6246f03

Please sign in to comment.