wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

command-t buffer remains open with vim-startify #288

Closed samuelallan72 closed 2 years ago

samuelallan72 commented 7 years ago

Steps to reproduce:

  1. open vim when vim-startify is enabled
  2. start command-t
  3. open a file with command-t, or press esc to cancel
  4. command-t buffer remains open, and crashes with an "invalid buffer id" error when trying to interact with it afterwards

This only affects it when first opening vim - if :Startify is run later during a session and command-t is then called, there are no problems. I suspect it's something to do with vim-startify setting a combination of buffer options so it isn't treated as a normal file, and command-t is making some assumptions that causes it to lose its buffer id or something.

wincent commented 7 years ago

I wouldn't be surprised if vim-startify is doing something funky with autocommands (suppressing them in some way, or perhaps double/early triggering them).

Not a startify user myself, but I will have a look into it at some point. Let me know if you discover anything else in the meantime, and thanks for the report.

wincent commented 2 years ago

Given the big rewrite for v6.0.x, I'm closing all older issues as there is unlikely to be anything significant happening on the 5-x-devel branch from here on[^patches]. Feedback issue for 6.0.x is here:

[^patches]: Patches and PRs would be welcome, but my personal efforts are going to be directed towards main.