761 if self.__replaceMode: |
761 if self.__replaceMode: |
762 if len(rline) > 1024: |
762 if len(rline) > 1024: |
763 rline = "{0} ...".format(line[:1024]) |
763 rline = "{0} ...".format(line[:1024]) |
764 line = "- {0}\n+ {1}".format( |
764 line = "- {0}\n+ {1}".format( |
765 line, |
765 line, |
766 "\n ".join( |
766 ( |
767 Utilities.slash(rl) for rl in rline.splitlines(True) |
767 "\n ".join( |
768 ) |
768 Utilities.slash(rl) for rl in rline.splitlines(True) |
769 if esc |
769 ) |
770 else self.__stripEol(rline), |
770 if esc |
|
771 else self.__stripEol(rline) |
|
772 ), |
771 ) |
773 ) |
772 self.__createItem(file, count, line, start, end, rline, hashStr) |
774 self.__createItem(file, count, line, start, end, rline, hashStr) |
773 |
775 |
774 if time.monotonic() - now > 0.01: |
776 if time.monotonic() - now > 0.01: |
775 QApplication.processEvents() |
777 QApplication.processEvents() |