def has_match_at_current_position(self, sub):
        return self.text.find(sub, self.cursor_position) == self.cursor_position
`True` when this substring is found at the cursor position.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.has_match_at_current_position