Skip to content

Commit a60f1b2

Browse files
committed
Avoid error for older versions of rails.vim
1 parent f7ee415 commit a60f1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/turbux.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function! s:prefix_for_test(file)
6161
endfunction
6262

6363
function! s:test_file_for(file)
64-
if exists('g:autoloaded_rails') && !empty(rails#buffer())
64+
if exists('g:autoloaded_rails') && !empty(rails#buffer()) && rails#buffer().test_file
6565
return rails#buffer().test_file()
6666
elseif !empty(s:prefix_for_test(a:file))
6767
return a:file

0 commit comments

Comments
 (0)