Skip to content

Commit 5acbe8f

Browse files
committed
Fix Issue colinta#55
1 parent 0573920 commit 5acbe8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

file_diffs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def on_post_diff_tool(from_file, to_file):
250250
**kwargs)
251251

252252
def is_visible(self):
253-
return sublime.get_clipboard()
253+
return sublime.get_clipboard() != ''
254254

255255

256256
class FileDiffSelectionsCommand(FileDiffCommand):
@@ -432,7 +432,7 @@ def on_post_diff_tool(from_file, to_file):
432432
**kwargs)
433433

434434
def is_visible(self):
435-
return previous_view
435+
return previous_view is not None
436436

437437
def record_current_view(view):
438438
global previous_view

0 commit comments

Comments
 (0)