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.