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

Allow ctrlp_user_command to not have '%s' in it #779

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Thr4wn
Copy link

@Thr4wn Thr4wn commented Oct 22, 2019

Previously, this command always executed: printf(lscmd, path), and
lscmd is set to the value of ctrlp_user_command if that value is set.
The problem is that if ctrlp_user_command does not have a %s in it, then
printf command receives, as its first parameter, a string that doesn't
have %s in it. However, it also receives a second parameter. This causes
printf to throw an error saying that there are too many parameters. That
error is silently caught (line 351). The net result is that the users
experiences the symptom of seeing the message "NO ENTRIES" every time.

Previously, this command _always_ executed: `printf(lscmd, path)`, and
lscmd is set to the value of ctrlp_user_command if that value is set.
The problem is that if ctrlp_user_command does not have a %s in it, then
printf command receives, as its first parameter, a string that doesn't
have %s in it. However, it also receives a second parameter. This causes
printf to throw an error saying that there are too many parameters. That
error is silently caught (line 351). The net result is that the users
experiences the symptom of seeing the message "NO ENTRIES" every time.
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.

None yet

2 participants