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

ctrlp_working_path_mode = 2 produces and error in FindRoot #18

Closed
iynaix opened this issue Oct 10, 2011 · 2 comments
Closed

ctrlp_working_path_mode = 2 produces and error in FindRoot #18

iynaix opened this issue Oct 10, 2011 · 2 comments
Labels

Comments

@iynaix
Copy link

iynaix commented Oct 10, 2011

With the following line in my vimrc:

let g:ctrlp_working_path_mode = 2

Every time I invoke ctrlp, I receive the following error:

Error detected while processing function ctrlp#init..ctrlp#SetWorkingPath..56_FindRoot:
line 10:
E121: Undefined variable: a:1
E116: Invalid arguments for function 56_FindRoot
line 11:
E171: Missing :endif
line 10:
E121: Undefined variable: a:1
E116: Invalid arguments for function 56_FindRoot
line 11:
E171: Missing :endif
line 10:
E121: Undefined variable: a:1
E116: Invalid arguments for function 56_FindRoot
line 11:
E171: Missing :endif
line 10:
E121: Undefined variable: a:1
E116: Invalid arguments for function 56_FindRoot
line 11:
E171: Missing :endif
line 10:
E121: Undefined variable: a:1

@iynaix
Copy link
Author

iynaix commented Oct 10, 2011

Running a git bisect, it appears that the error was introduced in the following commit: 000742dc

kien added a commit that referenced this issue Oct 10, 2011
@kien
Copy link
Owner

kien commented Oct 10, 2011

Sorry about that, I forgot to do a check for a:1 after removing another FindRoot call. Just pushed a fix.

Thank you for reporting!

@kien kien closed this as completed Oct 10, 2011
nfvs pushed a commit to nfvs/ctrlp.vim that referenced this issue Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants