Skip to content

Commit a86ed1c

Browse files
committed
Ignore ! nav suffix when file already exists
Closes tpope#417.
1 parent 21ada3b commit a86ed1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ endfunction
20032003

20042004
function! s:jumpargs(file, jump) abort
20052005
let file = fnameescape(a:file)
2006-
if empty(a:jump)
2006+
if empty(a:jump) || a:jump ==# '!'
20072007
return file
20082008
elseif a:jump =~# '^\d\+$'
20092009
return '+' . a:jump . ' ' . file

0 commit comments

Comments
 (0)