Beispiel #1
0
    def Clear(self):
        for category, tab_buffer in self._buffers.items():
            if tab_buffer.is_job:
                utils.CleanUpCommand(category, self._api_prefix)
            utils.CleanUpHiddenBuffer(tab_buffer.buf)

        # FIXME: nunmenu the WinBar ?
        self._buffers = {}
Beispiel #2
0
    def Clear(self):
        for category, tab_buffer in self._buffers.items():
            if tab_buffer.is_job:
                utils.CleanUpCommand(category)
            try:
                vim.command('bdelete! {0}'.format(tab_buffer.buf.number))
            except vim.error as e:
                # FIXME: For now just ignore the "no buffers were deleted" error
                if 'E516' not in e:
                    raise

        self._buffers = {}
Beispiel #3
0
    def _CleanUpBuffer(self, category: str, tab_buffer: TabBuffer):
        if tab_buffer.is_job:
            utils.CleanUpCommand(category, self._api_prefix)

        utils.CleanUpHiddenBuffer(tab_buffer.buf)