diff --git a/leetcode/terminal.py b/leetcode/terminal.py index 1e82720..86f8d34 100644 --- a/leetcode/terminal.py +++ b/leetcode/terminal.py @@ -78,7 +78,8 @@ def keystroke(self, key): self.goto_view(self.make_quit_confirmation()) elif key is 's': - self.goto_view(self.make_submit_confirmation()) + if not self.is_home: + self.goto_view(self.make_submit_confirmation()) elif not self.is_home and (key is 'left' or key is 'h'): self.go_back()