Skip to content

Commit 84d7c0a

Browse files
committed
Error on non-projection R navigation commands
1 parent 01ed52d commit 84d7c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/rails.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2545,9 +2545,9 @@ call s:add_methods('app', ['commands'])
25452545

25462546
function! s:addfilecmds(type)
25472547
let l = s:sub(a:type,'^.','\l&')
2548+
let cplt = " -complete=customlist,".s:sid.l."List"
25482549
for prefix in ['E', 'S', 'V', 'T', 'D', 'R', 'RE', 'RS', 'RV', 'RT', 'RD']
2549-
let cplt = " -complete=customlist,".s:sid.l."List"
2550-
exe "command! -buffer -bar ".(prefix =~# 'D' ? '-range=0 ' : '')."-nargs=*".cplt." ".prefix.l." :execute s:".l.'Edit("<mods> '.(prefix =~# 'D' ? '<line1>' : '').s:sub(prefix, '^R', '').'<bang>",<f-args>)'
2550+
exe "command! -buffer -bar ".(prefix =~# 'D' ? '-range=0 ' : '')."-nargs=*".cplt." ".prefix.l." :execute s:r_error('".prefix."',s:".l.'Edit("<mods> '.(prefix =~# 'D' ? '<line1>' : '').s:sub(prefix, '^R', '').'<bang>",<f-args>))'
25512551
endfor
25522552
endfunction
25532553

0 commit comments

Comments
 (0)