#NEWLINE# def move_cursor_to_region( self , region ) : #NEWLINE# #INDENT# " Clear the cursor's position and move it to `region`. " #NEWLINE# cursor = self . view . sel ( ) #NEWLINE# self . original_position = self [ 0 ] #NEWLINE# cursor . clear ( ) #NEWLINE# cursor . add ( region ) #NEWLINE# self . view . show ( region )