File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
"""
3
3
Pyvim configuration. Save to file to: ~/.pyvimrc
4
4
"""
5
+ from prompt_toolkit .application import run_in_terminal
5
6
from prompt_toolkit .filters import ViInsertMode
6
7
from prompt_toolkit .key_binding .key_processor import KeyPress
7
8
from prompt_toolkit .keys import Keys
@@ -64,7 +65,7 @@ def configure(editor):
64
65
editor_buffer = editor .current_editor_buffer
65
66
66
67
if editor_buffer is not None :
67
- if editor_buffer .filename is None :
68
+ if editor_buffer .location is None :
68
69
editor .show_message ("File doesn't have a filename. Please save first." )
69
70
return
70
71
else :
@@ -74,7 +75,7 @@ def configure(editor):
74
75
# `CommandLineInterface.run_in_terminal` to go to the background and
75
76
# not destroy the window layout.
76
77
def execute ():
77
- call (['python ' , editor_buffer .filename ])
78
+ call (['python3 ' , editor_buffer .location ])
78
79
six .moves .input ('Press enter to continue...' )
79
80
80
- editor . cli . run_in_terminal (execute )
81
+ run_in_terminal (execute )
You can’t perform that action at this time.
0 commit comments