From e83acfd5dabd5ca04851f4e63901562ed9788113 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Sat, 16 Oct 2021 19:16:41 -0400 Subject: [PATCH] open file on write --- command_prompt.py | 5 +++++ 1 file changed, 5 insertions(+) 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":