def redraw(self, is_force: bool=True) -> None:
    self._context['is_redraw'] = is_force
    if is_force:
        self._gather_candidates()
    if self._update_candidates():
        self._update_buffer()
    else:
        self._update_status()
    self._context['is_redraw'] = False
def redraw(self, is_force: bool=True) -> None:
    self._context['is_redraw'] = is_force
    if is_force:
        self._gather_candidates()
    if self._update_candidates():
        self._update_buffer()
    else:
        self._update_status()
    self._context['is_redraw'] = False