def _get_char_relative_to_cursor(self, offset=0):
        try:
            return self.text[self.cursor_position + offset]
        except IndexError:
            return ''
Return character relative to cursor position, or empty string
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document._get_char_relative_to_cursor