@@ -316,6 +316,8 @@ def find_with_scope(view, pattern, scope, start_pos=0, cond=True, flags=0):
316316 max_pos = view .size ()
317317
318318 while start_pos < max_pos :
319+ estrs = pattern .split ('\ufffd ' )
320+ if (len (estrs )> 1 ):pattern = estrs [0 ]
319321 f = view .find (pattern , start_pos , flags )
320322
321323 if not f or view .match_selector (f .begin (), scope ) is cond :
@@ -352,7 +354,7 @@ def follow_tag_path(view, tag_path, pattern):
352354 if setting ('debug' ): # leave a visual trail for easy debugging
353355 regions = regions + ([pattern_region ] if pattern_region else [])
354356 view .erase_regions ('tag_path' )
355- view .add_regions ('tag_path' , regions , 'comment' , 1 )
357+ view .add_regions ('tag_path' , regions , 'comment' , '' , 1 )
356358
357359 return pattern_region .begin () - 1 if pattern_region else None
358360
@@ -409,7 +411,7 @@ def format_tag_for_quickopen(tag, show_path=True):
409411 f += string .Template (
410412 ' %($field)s$punct%(symbol)s' ).substitute (locals ())
411413
412- format = [( f or tag . symbol ) % tag , tag .ex_command ]
414+ format = [f % tag if f else tag . symbol , tag .ex_command ]
413415 format [1 ] = format [1 ].strip ()
414416
415417 if show_path :
0 commit comments