Skip to content

Commit f3f4a78

Browse files
committed
Merge pull request colinta#60 from burtbeckwith/patch-1
Bug fix for unnamed view
2 parents ace85cc + 9224a13 commit f3f4a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file_diffs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def on_post_diff_tool(from_file, to_file):
311311
**kwargs)
312312

313313
def is_visible(self):
314-
return self.view.file_name() and self.view.is_dirty()
314+
return bool(self.view.file_name()) and self.view.is_dirty()
315315

316316

317317
class FileDiffFileCommand(FileDiffCommand):

0 commit comments

Comments
 (0)