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

fileview: forward search events to annotate widget, when appropriate

parent 3e39304fb893
...@@ -428,11 +428,17 @@ class HgFileView(QFrame): ...@@ -428,11 +428,17 @@ class HgFileView(QFrame):
@pyqtSlot(unicode, bool, bool, bool) @pyqtSlot(unicode, bool, bool, bool)
def find(self, exp, icase=True, wrap=False, forward=True): def find(self, exp, icase=True, wrap=False, forward=True):
self._find_text = hglib.fromunicode(exp) self._find_text = hglib.fromunicode(exp)
self.sci.find(exp, icase, wrap, forward) if self._mode == 'ann':
self._annotate.find(exp, icase, wrap, forward)
else:
self.sci.find(exp, icase, wrap, forward)
@pyqtSlot(unicode, bool) @pyqtSlot(unicode, bool)
def highlightText(self, match, icase=False): def highlightText(self, match, icase=False):
self.sci.highlightText(match, icase) if self._mode == 'ann':
self._annotate.highlightText(match, icase)
else:
self.sci.highlightText(match, icase)
def verticalScrollBar(self): def verticalScrollBar(self):
return self.sci.verticalScrollBar() return self.sci.verticalScrollBar()
......
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