Vim-devicons: :CtrlPMRU now erroneously shows the current buffer.

Created on 4 Aug 2015  Â·  11Comments  Â·  Source: ryanoasis/vim-devicons

I didn't try to extensively reproduce this. I just noticed it after installing, so let me know if it's not easy to reproduce. I had to disable the plugin to fix.

:CrtlPMRU is supposed to automatically place your cursor on the previously opened buffer. Now it starts you on the _current_ buffer, which you would obviously never need to switch to.

âš  confirmed bug

Most helpful comment

The support needed in ctrlp has now been merged 🎉 . The vimdevicons portion will be added in the next release (v0.9.0)

All 11 comments

@washtubs thanks and I will look into it. Sorry about that!

Just FYI if you want you can disable _just_ the ctrlp integration until this is fixed with:

let g:webdevicons_enable_ctrlp = 0

after a lot of digging I found the key issue inside s:MatchIt because I am sending the items with an extra glyph/icon but the current item (a:exc) here does _NOT_ have the glyph so the match is failing causing the item to be added to the list when it shouldn't be.

This all relates to how I am actually modifying s:mrufs instead of modifying the s:formatline() method and the change would require overwriting a ton more CtrlP functions :cry:

So I think what is going to happen is eventually I am going to drop support of Kien's original repo and only support the ctrlpvim active fork CtrlP because I could submit a PR to make this a lot easier

Which one do you use by the way?

I use kien's but until you mentioned it, I didn't know there was another one that was being actively maintained. Now I suppose I'll just switch to that one!

:smile:

Sorry for the late follow up. @washtubs is this still an issues?

If you use pull the latest https://github.com/ctrlpvim/ctrlp.vim it _should_ be fixed since my PR.

I will test this out tomorrow. Cheers.

Actually, sorry this still looks to be an issue :cry:

This is actually a very annoying UX , so I am going to try to work on it next after a few other ones are completed

this bug really prevent me using vim-devicons...... hope get fixed soon

@liuxyc Sorry about that. Yes well I have a proposal for a solution (https://github.com/ctrlpvim/ctrlp.vim/issues/267) but waiting for a response and then I would submit a PR to ctrlp that would add support for logic on vimdevicons side to complete the fix

The support needed in ctrlp has now been merged 🎉 . The vimdevicons portion will be added in the next release (v0.9.0)

Wow has it been this long? :blush: I will try to get this up this weekend. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PetarMetodiev picture PetarMetodiev  Â·  10Comments

shammellee picture shammellee  Â·  4Comments

ntropia2 picture ntropia2  Â·  4Comments

ctaylo21 picture ctaylo21  Â·  3Comments

divramod picture divramod  Â·  7Comments