Skip to content

Commit e6bda37

Browse files
cosvenjonathanslenders
authored andcommitted
fix pyvimrc example
no more `input_processor` module
1 parent 289e1ec commit e6bda37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/config/pyvimrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Pyvim configuration. Save to file to: ~/.pyvimrc
44
"""
55
from prompt_toolkit.filters import ViInsertMode
6-
from prompt_toolkit.key_binding.input_processor import KeyPress
6+
from prompt_toolkit.key_binding.key_processor import KeyPress
77
from prompt_toolkit.keys import Keys
88
from subprocess import call
99
import six
@@ -53,7 +53,7 @@ def configure(editor):
5353
5454
(imap jj <esc>)
5555
"""
56-
event.cli.input_processor.feed(KeyPress(Keys.Escape))
56+
event.cli.key_processor.feed(KeyPress(Keys.Escape))
5757

5858
@editor.add_key_binding(Keys.F9)
5959
def save_and_execute_python_file(event):
@@ -69,7 +69,7 @@ def configure(editor):
6969
return
7070
else:
7171
editor_buffer.write()
72-
72+
7373
# Now run the Python interpreter. But use
7474
# `CommandLineInterface.run_in_terminal` to go to the background and
7575
# not destroy the window layout.

0 commit comments

Comments
 (0)