editors/Viewer.py
changeset 1057 3837e165b3f9
parent 1042 6dbdc6844eb9
child 1069 880ec628d490
equal deleted inserted replaced
1056:f7aaf31d000f 1057:3837e165b3f9
  3165                     block = self.Blocks.get(infos[2])
  3165                     block = self.Blocks.get(infos[2])
  3166                     if block is not None:
  3166                     if block is not None:
  3167                         blocks.append((block, (infos[1:], start, end, SEARCH_RESULT_HIGHLIGHT)))
  3167                         blocks.append((block, (infos[1:], start, end, SEARCH_RESULT_HIGHLIGHT)))
  3168             blocks.sort(sort_blocks)
  3168             blocks.sort(sort_blocks)
  3169             self.SearchResults.extend([infos for block, infos in blocks])
  3169             self.SearchResults.extend([infos for block, infos in blocks])
       
  3170             self.CurrentFindHighlight = None
  3170         
  3171         
  3171         if len(self.SearchResults) > 0:
  3172         if len(self.SearchResults) > 0:
  3172             if self.CurrentFindHighlight is not None:
  3173             if self.CurrentFindHighlight is not None:
  3173                 old_idx = self.SearchResults.index(self.CurrentFindHighlight)
  3174                 old_idx = self.SearchResults.index(self.CurrentFindHighlight)
  3174                 if self.SearchParams["wrap"]:
  3175                 if self.SearchParams["wrap"]: