dyng / ctrlsf.vim

A text searching plugin mimics Ctrl-Shift-F on Sublime Text 2
1.6k stars 86 forks source link

Error in ctrlsf#fs#FindProjectRoot #307

Closed lervag closed 3 years ago

lervag commented 3 years ago

https://github.com/dyng/ctrlsf.vim/blob/1afb4e2117026a27a2960f68ef96fc99597526ad/autoload/ctrlsf/fs.vim#L20-L26

The marker variable is not always available. This means the second conditional is an error if g:ctrlsf_extra_root_markers <= 0.

dyng commented 3 years ago

Oops, a naive mistake.

dyng commented 3 years ago

@lervag Thanks for your quick feedback about this bug!

lervag commented 3 years ago

No probem, happy to be of help :)

lervag commented 3 years ago

And thanks for the quick fix!