@register(u'end-of-history')
def end_of_history(event):
 event.current_buffer.history_forward(count=(10 ** 100))
 buff = event.current_buffer
 buff.go_to_history((len(buff._working_lines) - 1))

@ register ( u'end-of-history' ) def end_of_history ( event ) : event . current_buffer . history_forward ( count = ( 10 ** 100 ) ) buff = event . current_buffer buff . go_to_history ( ( len ( buff . _working_lines ) - 1 ) )
move to the end of the input history .