Skip to content

Commit

Permalink
Merge 54c3b9f into b7ace5d
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Feb 2, 2019
2 parents b7ace5d + 54c3b9f commit 3791945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/commands/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def run_async(self, in_cached_mode=False, file_path=None, current_file=False, ba
settings.set("result_base_dir", repo_path)

if not title:
title = (DIFF_CACHED_TITLE if in_cached_mode else DIFF_TITLE).format(os.path.basename(repo_path))
title = (DIFF_CACHED_TITLE if in_cached_mode else DIFF_TITLE).format(
os.path.basename(file_path) if file_path else os.path.basename(repo_path)
)
diff_view.set_name(title)
diff_view.set_syntax_file("Packages/GitSavvy/syntax/diff_view.sublime-syntax")
diff_views[view_key] = diff_view
Expand Down

0 comments on commit 3791945

Please sign in to comment.