def repl_view_delta(sublime_view):
 rv = manager.repl_view(sublime_view)
 if (not rv):
  return (None, (-1))
 delta = (rv._output_end - sublime_view.sel()[0].begin())
 return (rv, delta)

def repl_view_delta ( sublime_view ) : rv = manager . repl_view ( sublime_view ) if ( not rv ) : return ( None , ( - 1 ) ) delta = ( rv . _output_end - sublime_view . sel ( ) [ 0 ] . begin ( ) ) return ( rv , delta )
return a repl_view and number of characters from current selection to then beggingin of user_input .