Skip to content

Fix default mode and mode names when g:ctrlp_types is customized.#310

Merged
mattn merged 3 commits intoctrlpvim:masterfrom
dkasak:fix-custom-mode-order
Oct 2, 2016
Merged

Fix default mode and mode names when g:ctrlp_types is customized.#310
mattn merged 3 commits intoctrlpvim:masterfrom
dkasak:fix-custom-mode-order

Conversation

@dkasak
Copy link
Copy Markdown

@dkasak dkasak commented Oct 1, 2016

When the user customized g:ctrlp_types to use a custom core mode set (possibly
with a custom relative order), the default mode (used when a bare :CtrlP is
issued) is wrong, along with the descriptive names of modes displayed in the
statusline. This pull request fixes these issues.

Fixes #309.

dkasak added 3 commits October 1, 2016 16:50
Instead of just filtering s:coretypes (which contains descriptive mode
names) based on g:ctrlp_types, change the order of its elements so the
correct mode name is fetched.

Fixes ctrlpvim#309.
@mattn mattn merged commit c6d1fc5 into ctrlpvim:master Oct 2, 2016
@mattn
Copy link
Copy Markdown
Member

mattn commented Oct 2, 2016

Thank you

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

Successfully merging this pull request may close these issues.

g:ctrlp_types doesn't use the correct core type names

2 participants