Skip to content

Commit 89e2d10

Browse files
committed
Eliminate debugging error
I think this is solved.
1 parent 8b514fc commit 89e2d10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugin/rails.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ function! RailsDetect(...) abort
3737
endif
3838
let ofn = ""
3939
let fns = []
40-
while fn != ofn && fn !=# '/'
40+
while fn != ofn && fn !=# '/' && fn !=# '.'
4141
call add(fns, fn)
42-
if fn ==# '.'
43-
throw 'Rails app detection bug: '.string(fns)[1: -2]
44-
endif
4542
if filereadable(fn . "/config/environment.rb")
4643
let b:rails_root = resolve(fn)
4744
return 1

0 commit comments

Comments
 (0)