Skip to content

Commit

Permalink
Merge pull request #1953 from timbrel/fix-inline-after-reload
Browse files Browse the repository at this point in the history
Refresh inline diff after reloads
  • Loading branch information
kaste authored Nov 27, 2024
2 parents 0b5abaa + 470e3c9 commit f3cab3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/commands/inline_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,10 @@ def on_activated(self, view: sublime.View) -> None:
if (
active_on_activated
and is_inline_diff_view(view)
and not view.settings().get("git_savvy.inline_diff_view.target_commit")
and (
not view.settings().get("git_savvy.inline_diff_view.target_commit")
or view.id() not in diff_view_hunks
)
):
view.run_command("gs_inline_diff_refresh", {"sync": False})

Expand Down

0 comments on commit f3cab3d

Please sign in to comment.