We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
I have changed this part of the code:
index = text.find(search) self.search_lines = [] # Restore search lines appendLine = self.search_lines.append while index != -1 and word: line = self.SendScintilla(QsciScintilla.SCI_LINEFROMPOSITION, index) if line not in self.search_lines: appendLine(line) self.SendScintilla(QsciScintilla.SCI_INDICATORFILLRANGE, index, word_length) index = text.find(search, index + 1)
by:
search = re.compile(search) self.search_lines = [] appendLine = self.search_lines.append if word: for lineno, line_text in enumerate(text.splitlines()): for i in search.finditer(line_text): start, end = i.start(), i.end() self.fillIndicatorRange(lineno, start, lineno, end, self.__indicator_word) if lineno not in self.search_lines: appendLine(lineno)
And the results were better, but I do not know if more efficient
Sorry, something went wrong.
Fixed
centaurialpha
No branches or pull requests
The text was updated successfully, but these errors were encountered: