<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_match_at_current_position(self, sub):
 """ `True` when this substring is found at the cursor position. """

        return self.text.find(sub, self.cursor_position) == self.cursor_position