FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix error when editing virtual files · vim-ruby/vim-ruby@423286e · GitHub

Commit 423286e

Browse files
committed
Fix error when editing virtual files
Closes #131.
1 parent 83653b4 commit 423286e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ftplugin/ruby.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function! s:build_path(path)
9898
return path
9999
endfunction
100100

101-
if !exists('b:ruby_version') && !exists('g:ruby_path')
101+
if !exists('b:ruby_version') && !exists('g:ruby_path') && isdirectory(expand('%:p:h'))
102102
let s:version_file = findfile('.ruby-version', '.;')
103103
if !empty(s:version_file)
104104
let b:ruby_version = get(readfile(s:version_file, '', 1), '')

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL