Skip to content

Commit 12addfc

Browse files
committed
More repetitive deprecated navigation command warnings
1 parent 38ec287 commit 12addfc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/rails.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,8 +3102,7 @@ function! s:projection_pairs(options)
31023102
endfunction
31033103

31043104
function! s:r_warning(cmd) abort
3105-
if a:cmd =~# 'R\|^$' && !exists('s:r_warning')
3106-
let s:r_warning = 1
3105+
if a:cmd =~# 'R\|^$'
31073106
let old = s:sub(a:cmd, '^$', 'R')
31083107
let instead = s:sub(s:sub(a:cmd, '^R', ''), '^$', 'E')
31093108
return '|echohl WarningMsg|echomsg ":'.old.' navigation commands are deprecated. Use :'.instead.' commands instead."|echohl None'

0 commit comments

Comments
 (0)