def _current_text_cursor(self):
cursor = self._text_edit.textCursor()<EOL>if cursor.position() >= self._start_position:<EOL><INDENT>cursor.setPosition(self._start_position,<EOL>QtGui.QTextCursor.KeepAnchor)<EOL><DEDENT>return cursor<EOL>
Returns a cursor with text between the start position and the
            current position selected.