# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 2024-02-15 03:54:21 # Node ID d0f6b96d1fb8dbfa6a1d013e95140d6b73c025d3 # Parent 47c74c12020508a300627532917f266331dd3ea3 crecord: add handle(next|prev)search functions These are now just simple wrappers around `searchdirection` diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1953,6 +1953,16 @@ are you sure you want to review/edit and self.stdscr.clear() self.stdscr.refresh() + def handlenextsearch(self): + self.searchdirection( + _(b"Next pattern not found (press ENTER)"), forward=True + ) + + def handleprevsearch(self): + self.searchdirection( + _(b"Previous pattern not found (press ENTER)"), forward=False + ) + def handlekeypressed(self, keypressed, test=False): """ Perform actions based on pressed keys.