Skip to content

Commit 6e0a002

Browse files
committed
Fix :'<,'>Rails on newer Vim versions
Closes tpope#549
1 parent a6dcabf commit 6e0a002

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
@@ -114,7 +114,7 @@ augroup railsPluginDetect
114114
\ endif
115115
augroup END
116116

117-
command! -bang -bar -nargs=* -count -complete=customlist,rails#complete_rails Rails execute rails#command(<bang>0, '<mods>', !<count> && <line1> ? -1 : <count>, <q-args>)
117+
command! -bang -bar -nargs=* -range=-1 -complete=customlist,rails#complete_rails Rails execute rails#command(<bang>0, '<mods>', <count>, <q-args>)
118118

119119
" }}}1
120120
" dadbod.vim support {{{1

0 commit comments

Comments
 (0)