crecord: add a default regex to curseschunkselector
authorJordi Gutiérrez Hermoso <jordigh@octave.org>
Wed, 14 Feb 2024 22:46:41 -0500
changeset 51384 ed0b78b2a3aa
parent 51383 1d488f7be492
child 51385 880740426a34
crecord: add a default regex to curseschunkselector Whether there is a regex to search or not will affect if we can find the next or the previous search hit.
mercurial/crecord.py
--- a/mercurial/crecord.py	Wed Feb 14 22:43:51 2024 -0500
+++ b/mercurial/crecord.py	Wed Feb 14 22:46:41 2024 -0500
@@ -709,6 +709,8 @@
             )
         self.operation = operation
 
+        self.regex = None
+
     def uparrowevent(self):
         """
         try to select the previous item to the current item that has the