Read about our upcoming Code of Conduct on this issue

Commit fdf26059 authored by Steve Borho's avatar Steve Borho
Browse files

fileview: forward search events to annotate widget, when appropriate

parent 3e39304fb893
......@@ -428,10 +428,16 @@ class HgFileView(QFrame):
@pyqtSlot(unicode, bool, bool, bool)
def find(self, exp, icase=True, wrap=False, forward=True):
self._find_text = hglib.fromunicode(exp)
if self._mode == 'ann':
self._annotate.find(exp, icase, wrap, forward)
self.sci.find(exp, icase, wrap, forward)
@pyqtSlot(unicode, bool)
def highlightText(self, match, icase=False):
if self._mode == 'ann':
self._annotate.highlightText(match, icase)
self.sci.highlightText(match, icase)
def verticalScrollBar(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment