open file on write
This commit is contained in:
		@@ -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":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user