(self)
Clear selection
Clear selection
Clear selection
def clear(self):
        """Clear selection"""

        changed = self._is_cursor_started() is not None
        if not changed:
            changed = self._get_mark() is not None

        self._set_cursor_start(None)
        self._set_end(None)
        self._set_mark(None)
        self._linewise = False

        if changed:
            self.screen.style_updated()
def clear ( self ) : changed = self . _is_cursor_started ( ) is not None if not changed : changed = self . _get_mark ( ) is not None self . _set_cursor_start ( None ) self . _set_end ( None ) self . _set_mark ( None ) self . _linewise = False if changed : self . screen . style_updated ( )