Skip to content

Commit

Permalink
Fix frame centering issues with checkout and switch subcommands
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
  • Loading branch information
initialcommit-io committed Apr 1, 2023
1 parent 1a64db3 commit b4ae559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git_sim/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def construct(self):
else:
self.parse_commits(branch_commit)
self.draw_ref(branch_commit, self.topref)
self.recenter_frame()
self.scale_frame()

elif self.is_descendant:
self.parse_commits(branch_commit)
Expand Down
2 changes: 2 additions & 0 deletions git_sim/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def construct(self):
else:
self.parse_commits(branch_commit)
self.draw_ref(branch_commit, self.topref)
self.recenter_frame()
self.scale_frame()

elif self.is_descendant:
self.parse_commits(branch_commit)
Expand Down

0 comments on commit b4ae559

Please sign in to comment.