def _close_current_window(self) -> None:
    if (self._vim.call('winnr', '$') == 1):
        self._vim.command('buffer #')
    else:
        self._vim.command('close!')
def _close_current_window(self) -> None:
    if (self._vim.call('winnr', '$') == 1):
        self._vim.command('buffer #')
    else:
        self._vim.command('close!')