| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,7 +98,7 @@ function! s:build_path(path) | |||
| 98 | 98 | return path | |
| 99 | 99 | endfunction | |
| 100 | 100 | ||
| 101 | - if !exists('b:ruby_version') && !exists('g:ruby_path') | ||
| 101 | + if !exists('b:ruby_version') && !exists('g:ruby_path') && isdirectory(expand('%:p:h')) | ||
| 102 | 102 | let s:version_file = findfile('.ruby-version', '.;') | |
| 103 | 103 | if !empty(s:version_file) | |
| 104 | 104 | let b:ruby_version = get(readfile(s:version_file, '', 1), '') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments