chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot/putty-defaults: Don't maintain a separate icon title.
[profile]
/
dot
/
ipython-key-bindings.py
diff --git
a/dot/ipython-key-bindings.py
b/dot/ipython-key-bindings.py
index 3f392fe4498d6418b1782c99c02fa89d48e2cd53..abb1b01befa5e37e0ec706be9391eb7bffcd4a43 100644
(file)
--- a/
dot/ipython-key-bindings.py
+++ b/
dot/ipython-key-bindings.py
@@
-15,7
+15,8
@@
try: pt = ipy.pt_cli
except AttributeError: pass
else:
reg = pt.application.key_bindings_registry
except AttributeError: pass
else:
reg = pt.application.key_bindings_registry
- bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg)
+ try: bind = reg.add_binding
+ except AttributeError: bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg)
def inhibit_history_search(buf, fn):
searchp, searchtext = buf.enable_history_search, buf.history_search_text
def inhibit_history_search(buf, fn):
searchp, searchtext = buf.enable_history_search, buf.history_search_text