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

Mixing Buffer Deletion Modes Bug #2

Closed
amadeus opened this issue May 12, 2014 · 3 comments
Closed

Mixing Buffer Deletion Modes Bug #2

amadeus opened this issue May 12, 2014 · 3 comments
Labels

Comments

@amadeus
Copy link

amadeus commented May 12, 2014

Not sure what to title this, but it's easy to reproduce.

  1. Launch vim
  2. :edit file.txt
  3. :edit file2.txt
  4. :edit file3.txt
  5. Open CtrlPBuf
  6. ctrl + z to select a buffer
  7. ctrl + @ to delete the selected buffer
  8. Press ctrl + @ to delete the next buffer, it won't work.

I have to close CtrlPBuf and re-open it to use the non selection mode.

@d11wtq
Copy link
Owner

d11wtq commented May 13, 2014

Thanks for the heads-up. I thought I had gotten away with a simple fix of using (slient!) when deleting the buffers (ctrlp doesn't clear it's marked list until you close it and reopen it). I'll have an alternative solution to keep the marked list in sync.

@d11wtq d11wtq added the bug label May 29, 2014
@d11wtq
Copy link
Owner

d11wtq commented Jun 15, 2014

I've been able to fix this locally, but it requires a patch to ctrlp, since I need to reset the s:marked variable, which you can't do unless ctrlp itself provides a public interface to do that. Hopefully @kien will accept a PR to add ctrlp#clearmarkedlist.

@d11wtq
Copy link
Owner

d11wtq commented Aug 8, 2014

This should now be fixed if you switch to https://github.com/ctrlpvim/ctrlp.vim. Let me know how you go and thanks for reporting! :)

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

No branches or pull requests

2 participants