Skip to content

Commit 959e94b

Browse files
committed
Fix check for zero arguments
1 parent a6d2bac commit 959e94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ augroup railsPluginDetect
106106
\ endif
107107
autocmd VimEnter *
108108
\ if get(g:, 'rails_vim_enter', get(g:, 'projectionist_vim_enter', 1)) &&
109-
\ empty(expand("<amatch>")) && RailsDetect(getcwd()) |
109+
\ argc() == 0 && RailsDetect(getcwd()) |
110110
\ call rails#buffer_setup() |
111111
\ call s:doau_user('BufEnterRails') |
112112
\ endif

0 commit comments

Comments
 (0)