From 2b2a9ba07994b022694a64c625b110222feee381 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Wed, 3 Mar 2021 07:19:26 -0500 Subject: [PATCH] Fixed bug in the execute_editor call --- PySimpleGUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 338ca8d8..eaa65727 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -17801,7 +17801,7 @@ def execute_editor(file_to_edit, line_number=None): format_string = pysimplegui_user_settings.get('-editor format string-', None) # if no format string, then just launch the editor with the filename if not format_string or line_number is None: - execute_command_subprocess(editor_program, file_to_edit) + sp = execute_command_subprocess(editor_program, file_to_edit) else: command = _create_full_editor_command(editor_program, file_to_edit, line_number, format_string) # print('final command line = ', command)