Shougo / denite.nvim

:dragon: Dark powered asynchronous unite all interfaces for Neovim/Vim8
Other
2.06k stars 216 forks source link

Don't close nolisted and shown buffer when quitting denite window. #839

Closed matsui54 closed 3 years ago

matsui54 commented 3 years ago

Problem summary

When quitting denite window after previewing files, windows which contain nolisted buffer are also closed.

Reproduce way

  1. Open (Neo)Vim.
  2. :h
  3. :Denite help -input=helptxt
  4. Execute preview action.
  5. Quit denite window, and you will see existing help window is closed.

    Solution

    If there are buffers which are not listed but shown, denite should only make them nobuflisted not delete the buffer. This will restore the state before starting denite.