#NEWLINE# def get_visual_repeat_data( self ) : #NEWLINE# #INDENT# 'Returns the data needed to restore visual selections before\n        repeating a visual mode command in normal mode.\n        ' #NEWLINE# if ( self . mode not in ( modes . VISUAL , modes . VISUAL_LINE ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# first = first_sel ( self . view ) #NEWLINE# lines = ( utils . row_at ( self . view , first . end ( ) ) - utils . row_at ( self . view , first . begin ( ) ) ) #NEWLINE# if ( first > 0 ) : #NEWLINE# #INDENT# chars = utils . col_at ( self . view , first . end ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# chars = first . size ( ) #NEWLINE# #UNINDENT# return ( lines , chars , self . mode )