summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Meurer <asmeurer@gmail.com>2017-03-08 04:31:29 -0500
committerJonathan Slenders <jonathan@slenders.be>2017-03-08 20:52:30 +0100
commitbb8db8e4318afc07ad29b8d59bc4eedc764cd9bc (patch)
tree102f18f4fe1b61f75ac6ab7ae792736bc5cc50d7
parent50455f45d7afc1238981fc3818642365279a9b9e (diff)
Don't save undo state with CPRResponse
This gets called all the time, and ends up clearing the redo state instantly after an undo. Fixes #419.
-rw-r--r--prompt_toolkit/key_binding/bindings/basic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/prompt_toolkit/key_binding/bindings/basic.py b/prompt_toolkit/key_binding/bindings/basic.py
index 5564223b..401135de 100644
--- a/prompt_toolkit/key_binding/bindings/basic.py
+++ b/prompt_toolkit/key_binding/bindings/basic.py
@@ -196,7 +196,7 @@ def load_basic_bindings():
"""
event.current_buffer.insert_text(event.data)
- @handle(Keys.CPRResponse)
+ @handle(Keys.CPRResponse, save_before=lambda e: False)
def _(event):
"""
Handle incoming Cursor-Position-Request response.