comparison mercurial/crecord.py @ 51382:ed0b78b2a3aa

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.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 14 Feb 2024 22:46:41 -0500
parents 1d488f7be492
children 880740426a34
comparison
equal deleted inserted replaced
51381:1d488f7be492 51382:ed0b78b2a3aa
706 if operation not in _headermessages: 706 if operation not in _headermessages:
707 raise error.ProgrammingError( 707 raise error.ProgrammingError(
708 b'unexpected operation: %s' % operation 708 b'unexpected operation: %s' % operation
709 ) 709 )
710 self.operation = operation 710 self.operation = operation
711
712 self.regex = None
711 713
712 def uparrowevent(self): 714 def uparrowevent(self):
713 """ 715 """
714 try to select the previous item to the current item that has the 716 try to select the previous item to the current item that has the
715 most-indented level. for example, if a hunk is selected, try to select 717 most-indented level. for example, if a hunk is selected, try to select