#NEWLINE# def sel( view , i = 0 ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# s = view . sel ( ) #NEWLINE# if ( ( s is not None ) and ( i < len ( s ) ) ) : #NEWLINE# #INDENT# return view [ i ] #NEWLINE# #UNINDENT# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return sublime . Region ( 0 , 0 )