@register(u'operate-and-get-next')
def operate_and_get_next(event):
 buff = event.current_buffer
 new_index = (buff.working_index + 1)
 buff.accept_action.validate_and_handle(event.cli, buff)
 def set_working_index():
  buff.working_index = new_index
 event.cli.pre_run_callables.append(set_working_index)

@ register ( u'operate-and-get-next' ) def operate_and_get_next ( event ) : buff = event . current_buffer new_index = ( buff . working_index + 1 ) buff . accept_action . validate_and_handle ( event . cli , buff ) def set_working_index ( ) : buff . working_index = new_index event . cli . pre_run_callables . append ( set_working_index )
accept the current line for execution and fetch the next line relative to the current line from the history for editing .