File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ augroup railsPluginDetect
127127 autocmd !
128128 autocmd BufNewFile ,BufRead * call s: Detect (expand (" <afile>:p" ))
129129 autocmd VimEnter * if expand (" <amatch>" ) == " " && ! exists (" b:rails_root" ) | call s: Detect (getcwd ()) | endif | if exists (" b:rails_root" ) | silent doau User BufEnterRails | endif
130- autocmd FileType netrw if ! exists (" b:rails_root" ) | call s: Detect (expand (" <afile> :p" )) | endif | if exists (" b:rails_root" ) | silent doau User BufEnterRails | endif
130+ autocmd FileType netrw if ! exists (" b:rails_root" ) | call s: Detect (expand (" % :p" )) | endif | if exists (" b:rails_root" ) | silent doau User BufEnterRails | endif
131131 autocmd BufEnter * if exists (" b:rails_root" )|silent doau User BufEnterRails|endif
132132 autocmd BufLeave * if exists (" b:rails_root" )|silent doau User BufLeaveRails|endif
133133 autocmd Syntax railslog if s: autoload ()|call rails#log_syntax ()|endif
You can’t perform that action at this time.
0 commit comments