Skip to content

Commit

Permalink
Work around broken findfile() on OS X default Vim
Browse files Browse the repository at this point in the history
Closes #384.
  • Loading branch information
tpope committed Feb 15, 2015
1 parent d9a612b commit 6d21bd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/rails.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ function! RailsDetect(...) abort
return 1
endif
let fn = fnamemodify(a:0 ? a:1 : expand('%'), ':p')
if fn =~# ':[\/]\{2\}'
return 0
endif
if !isdirectory(fn)
let fn = fnamemodify(fn, ':h')
endif
Expand Down

0 comments on commit 6d21bd0

Please sign in to comment.