Skip to content

Commit

Permalink
Merge pull request #16 from fcpg/master
Browse files Browse the repository at this point in the history
prevent recursive/upward lookup from testing '//.{marker}' -- cygwin fix
  • Loading branch information
dbakker committed Apr 12, 2017
2 parents 432ce30 + b46f8c6 commit 6878712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/projectroot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function! projectroot#get(...)
while 1
let prev=pivot
let pivot=fnamemodify(pivot, ':h')
if filereadable(pivot.'/'.marker) || isdirectory(pivot.'/'.marker)
let fn = pivot.(pivot == '/' ? '' : '/').marker
if filereadable(fn) || isdirectory(fn)
return pivot
endif
if pivot==prev
Expand Down

0 comments on commit 6878712

Please sign in to comment.