From: Mark Wooding Date: Sun, 3 May 2020 23:57:06 +0000 (+0100) Subject: dot/ipython-key-bindings.py: Fix some bogus formatting. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/be6f67499ecde598ec78e231fc64a0710a45633e dot/ipython-key-bindings.py: Fix some bogus formatting. Being fair, one of these lines isn't bogus yet, but would be if I indented it one more step, and I intend to do just that now. --- diff --git a/dot/ipython-key-bindings.py b/dot/ipython-key-bindings.py index abb1b01..558d335 100644 --- a/dot/ipython-key-bindings.py +++ b/dot/ipython-key-bindings.py @@ -16,15 +16,18 @@ except AttributeError: pass else: reg = pt.application.key_bindings_registry try: bind = reg.add_binding - except AttributeError: bind = PTK.key_binding.bindings.utils.create_handle_decorator(reg) + 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 + searchp, searchtext = \ + buf.enable_history_search, buf.history_search_text buf.enable_history_search = F.Never() try: fn() finally: - buf.enable_history_search, buf.history_search_text = searchp, searchtext + buf.enable_history_search, buf.history_search_text = \ + searchp, searchtext @bind(K.ControlP) def prev_line(ev): buf = ev.current_buffer