diff --git a/command_prompt.py b/command_prompt.py index 8a5bcdd..a3955ff 100644 --- a/command_prompt.py +++ b/command_prompt.py @@ -318,7 +318,10 @@ class Command_prompt(Label): self.message="error: permission denied" return else: + self.app.openfile=self.argv[1] self.app.painter.write(self.argv[1]) + # update status bar + self.app.status_bar.draw() # open file if self.argv[0]=="e": @@ -346,6 +349,8 @@ class Command_prompt(Label): self.app.openfile=self.argv[1] # read the file self.app.painter.read(self.argv[1]) + # update status bar + self.app.status_bar.draw() # quit if self.argv[0]=="q" or self.argv=="wq":