Skip to content

Commit

Permalink
Fix clear screen timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Dec 20, 2023
1 parent 4f20983 commit b2e606a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -7379,6 +7379,9 @@ def do_invoke(self, argv: List[str]) -> None:
if redirect and os.access(redirect, os.W_OK):
enable_redirect_output(to_file=redirect)

if self["clear_screen"] and len(argv) == 0:
clear_screen(redirect)

for section in current_layout:
if section[0] == "-":
continue
Expand All @@ -7400,9 +7403,6 @@ def do_invoke(self, argv: List[str]) -> None:

self.context_title("")

if self["clear_screen"] and len(argv) == 0:
clear_screen(redirect)

if redirect and os.access(redirect, os.W_OK):
disable_redirect_output()
return
Expand Down

0 comments on commit b2e606a

Please sign in to comment.