@register(u'reverse-search-history')
def reverse_search_history(event):
 event.cli.current_search_state.direction = IncrementalSearchDirection.BACKWARD
 event.cli.push_focus(SEARCH_BUFFER)

@ register ( u'reverse-search-history' ) def reverse_search_history ( event ) : event . cli . current_search_state . direction = IncrementalSearchDirection . BACKWARD event . cli . push_focus ( SEARCH_BUFFER )
search backward starting at the current line and moving up through the history as necessary .