chiark / gitweb /
dot/ipython-key-bindings.py: Fix some bogus formatting.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 3 May 2020 23:57:06 +0000 (00:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 3 May 2020 23:59:10 +0000 (00:59 +0100)
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.

dot/ipython-key-bindings.py

index abb1b01befa5e37e0ec706be9391eb7bffcd4a43..558d335cf1e333a44e074db1c43784ca1c9b37bb 100644 (file)
@@ -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