#NEWLINE# def on_selection_modified_async( self , view ) : #NEWLINE# #INDENT# syntaxName = getExtension ( view . settings ( ) . get ( 'syntax' ) ) #NEWLINE# if ( ( not ( syntaxName == 'UX' ) ) or ( not getSetting ( 'fuse_selection_enabled' ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# caret = view . sel ( ) [ 0 ] . a #NEWLINE# if ( caret == self . lastCaret ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . lastCaret = caret #NEWLINE# fileName = view . file_name ( ) #NEWLINE# text = view . substr ( sublime . Region ( 0 , view . size ( ) ) ) #NEWLINE# gFuse . msgManager . sendEvent ( gFuse . interop , 'Fuse.Preview.SelectionChanged' , { #NEWLINE# #INDENT# 'Path' : fileName , #NEWLINE# 'Text' : text , #NEWLINE# 'CaretPosition' : getRowCol ( view , caret ) , #NEWLINE# #UNINDENT# } )