Shougo / ddu-ui-filer

File listing UI for ddu.vim
MIT License
55 stars 8 forks source link

When 'split' is set to 'no', new buffer was created after quitted #27

Closed namutaka closed 1 year ago

namutaka commented 1 year ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

When split option is set to 'no', after I quitted ddu, new "No Name" buffer was created.

Expected

"No Name" buffer is not created.

Environment Information

Provide a minimal init.vim/vimrc without plugin managers (Required!)

" Your minimal init.vim/vimrc
set runtimepath+=~/path/to/denops.vim
set runtimepath+=~/path/to/ddu.vim
set runtimepath+=~/path/to/ddu-source-file
set runtimepath+=~/path/to/ddu-ui-filer

nnoremap <space>e <Cmd>call ddu#start({
      \   'ui': 'filer',
      \   'sources': [{ 'name': 'file', 'params': {} }],
      \   'uiParams': {
      \     'filer': {
      \       'split': 'no',
      \     },
      \   },
      \ })<CR>

nnoremap <space>x <Cmd>call ddu#ui#filer#do_action('quit')<CR>

How to reproduce the problem from neovim/Vim startup (Required!)

  1. Open "No Name" buffer
  2. Check buffer list (:ls)
    :ls
    1 %a   "[No Name]"                    line 1
  3. Open ddu filer (<space>e)
  4. Close ddu filer (<space>x)
  5. Check buffer list again (:ls)
    :ls
    1  h   "[No Name]"                    line 1
    3 %a   "[No Name]"                    line 1

Screenshot (if possible)

Upload the log messages by :redir and :message (if errored)

Shougo commented 1 year ago

Fixed.