Skip to content

Commit 45e8ef0

Browse files
Fix frame centering issues with checkout and switch subcommands
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent c0e8c6c commit 45e8ef0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

git_sim/checkout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def construct(self):
7272
# using -b flag, create new branch label and exit
7373
if self.b:
7474
self.parse_commits(head_commit)
75+
self.recenter_frame()
76+
self.scale_frame()
7577
self.draw_ref(head_commit, self.topref, text=self.branch, color=m.GREEN)
7678
else:
7779
branch_commit = self.get_commit(self.branch)

git_sim/switch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def construct(self):
7272
# using -c flag, create new branch label and exit
7373
if self.c:
7474
self.parse_commits(head_commit)
75+
self.recenter_frame()
76+
self.scale_frame()
7577
self.draw_ref(head_commit, self.topref, text=self.branch, color=m.GREEN)
7678
else:
7779
branch_commit = self.get_commit(self.branch)

0 commit comments

Comments
 (0)