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

Split ctrlp#setlines() for ctrlp#init(). Fixes ctrlpvim/ctrlp.vim#463 #488

Conversation

ezequielv
Copy link

  • Issue:

Opening ctrlp in certain modes (:CtrlPBufTag, :CtrlPLine) seems to
trigger a partially deffective intialisation (for example, syntax
highlighting not working as expected).

  • Changes:

ctrlp#setlines() has been split in two, as the second part (now in
s:setlines_post()) seems to need &filetype, and s:DetectFileType()
seems to need the first part of the old ctrlp#setlines() (now in
s:setlines_pre()).

* Issue:

Opening "ctrlp" in certain modes (':CtrlPBufTag', ':CtrlPLine') seems to
trigger a partially deffective intialisation (for example, syntax
highlighting not working as expected).

* Changes:

ctrlp#setlines() has been split in two, as the second part (now in
s:setlines_post()) seems to need '&filetype', and s:DetectFileType()
seems to need the first part of the old ctrlp#setlines() (now in
s:setlines_pre()).
@ezequielv
Copy link
Author

For more details on the fix itself, please see the thread in #463.

@tacahiroy
Copy link
Member

Thanks for your PR.
I've done quick check for this with Vim 8.1.466 and looked working nicely.

@mattn
Copy link
Member

mattn commented Nov 22, 2018

Good to merge?

@tacahiroy
Copy link
Member

tacahiroy commented Nov 22, 2018 via email

@mattn mattn merged commit e953ee7 into ctrlpvim:master Nov 22, 2018
@mattn
Copy link
Member

mattn commented Nov 22, 2018

Thank you

@ezequielv
Copy link
Author

Thank you for merging this 👍. I've got a number of fixes for other issues I've encountered, so this merge is encouraging 😄

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.

3 participants