Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option 'resume' doesn't work properly #25

Closed
orokasan opened this issue Aug 12, 2022 · 0 comments
Closed

option 'resume' doesn't work properly #25

orokasan opened this issue Aug 12, 2022 · 0 comments

Comments

@orokasan
Copy link

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

Problems summary

After starting ddu.vim with 'resume' option, ddu ignores specified source and always startup with the resumed buffer.
Seems f97f6a3 is related to this problem.

Expected

ddu opens with specified options.

Environment Information

  • ddu.vim version (SHA1): 13273fd

  • denops.vim version (SHA1): a40e0c1

  • deno version(deno -V output): deno 1.24.1

  • OS: macOS 12.4 (21F2081)

  • neovim/Vim :version output: NVIM v0.8.0-dev-751-g8952def50

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

let s:plugins = [
      \ 'vim-denops/denops.vim',
      \ 'Shougo/ddu.vim',
      \ 'Shougo/ddu-ui-ff',
      \ 'Shougo/ddu-source-file',
      \ 'Shougo/ddu-source-file_old',
      \ ]

for item in s:plugins
  execute 'set runtimepath+=~/.cache/dein/repos/github.com/' . item
endfor

call ddu#custom#patch_global({
  \ 'ui': 'ff',
\ })

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

  1. :call ddu#start({'sources':[{'name':'file'}]})<CR>
  2. :close<CR>
  3. :call ddu#start({'resume': v:true})<CR> # open 1. buffer
  4. :close<CR>
  5. :call ddu#start({'sources':[{'name':'file_old'}]})<CR> # still open 1. buffer

Screenshot (if possible)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant