From fda0c0068bd013c7ba987fd87472ac4ad303fb15 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 23 Jul 2018 21:56:12 +1000 Subject: [PATCH] Fix bug that froze vigil while editing a file. --- vigil/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vigil/__main__.py b/vigil/__main__.py index bc2118d..6d5c160 100755 --- a/vigil/__main__.py +++ b/vigil/__main__.py @@ -751,9 +751,9 @@ class Screen: scroll_position[1] + 1) self._log.log_message([in_green("Editing "), path_colored, in_green(f" at line {line_num}...")]) - subprocess.run(f"{self.editor_command} +{line_num} {path}", - shell=True, stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + subprocess.Popen(f"{self.editor_command} +{line_num} {path}", + shell=True, stdout=subprocess.PIPE, + stderr=subprocess.PIPE) def toggle_status_style(self): self._summary.toggle_status_style(self._log)