8585
8686
8787class BORDER :
88- " Box drawing characters. "
88+ "Box drawing characters."
8989 HORIZONTAL = "\u2501 "
9090 VERTICAL = "\u2503 "
9191 TOP_LEFT = "\u250f "
@@ -420,7 +420,7 @@ def update_default_buffer(self):
420420
421421
422422def _toggle_help (history ):
423- " Display/hide help. "
423+ "Display/hide help."
424424 help_buffer_control = history .history_layout .help_buffer_control
425425
426426 if history .app .layout .current_control == help_buffer_control :
@@ -430,7 +430,7 @@ def _toggle_help(history):
430430
431431
432432def _select_other_window (history ):
433- " Toggle focus between left/right window. "
433+ "Toggle focus between left/right window."
434434 current_buffer = history .app .current_buffer
435435 layout = history .history_layout .layout
436436
@@ -513,45 +513,45 @@ def _(event):
513513 # Eager: ignore the Emacs [Ctrl-X Ctrl-X] binding.
514514 @handle ("c-w" , filter = main_buffer_focussed )
515515 def _ (event ):
516- " Select other window. "
516+ "Select other window."
517517 _select_other_window (history )
518518
519519 @handle ("f4" )
520520 def _ (event ):
521- " Switch between Emacs/Vi mode. "
521+ "Switch between Emacs/Vi mode."
522522 python_input .vi_mode = not python_input .vi_mode
523523
524524 @handle ("f1" )
525525 def _ (event ):
526- " Display/hide help. "
526+ "Display/hide help."
527527 _toggle_help (history )
528528
529529 @handle ("enter" , filter = help_focussed )
530530 @handle ("c-c" , filter = help_focussed )
531531 @handle ("c-g" , filter = help_focussed )
532532 @handle ("escape" , filter = help_focussed )
533533 def _ (event ):
534- " Leave help. "
534+ "Leave help."
535535 event .app .layout .focus_previous ()
536536
537537 @handle ("q" , filter = main_buffer_focussed )
538538 @handle ("f3" , filter = main_buffer_focussed )
539539 @handle ("c-c" , filter = main_buffer_focussed )
540540 @handle ("c-g" , filter = main_buffer_focussed )
541541 def _ (event ):
542- " Cancel and go back. "
542+ "Cancel and go back."
543543 event .app .exit (result = None )
544544
545545 @handle ("enter" , filter = main_buffer_focussed )
546546 def _ (event ):
547- " Accept input. "
547+ "Accept input."
548548 event .app .exit (result = history .default_buffer .text )
549549
550550 enable_system_bindings = Condition (lambda : python_input .enable_system_bindings )
551551
552552 @handle ("c-z" , filter = enable_system_bindings )
553553 def _ (event ):
554- " Suspend to background. "
554+ "Suspend to background."
555555 event .app .suspend_to_background ()
556556
557557 return bindings
@@ -630,7 +630,7 @@ def _default_buffer_pos_changed(self, _):
630630 )
631631
632632 def _history_buffer_pos_changed (self , _ ):
633- """ When the cursor changes in the history buffer. Synchronize. """
633+ """When the cursor changes in the history buffer. Synchronize."""
634634 # Only when this buffer has the focus.
635635 if self .app .current_buffer == self .history_buffer :
636636 line_no = self .history_buffer .document .cursor_position_row
0 commit comments