Skip to content

Commit

Permalink
Ignore ! nav suffix when file already exists
Browse files Browse the repository at this point in the history
Closes #417.
  • Loading branch information
tpope committed Jun 30, 2015
1 parent 21ada3b commit a86ed1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/rails.vim
Expand Up @@ -2003,7 +2003,7 @@ endfunction

function! s:jumpargs(file, jump) abort
let file = fnameescape(a:file)
if empty(a:jump)
if empty(a:jump) || a:jump ==# '!'
return file
elseif a:jump =~# '^\d\+$'
return '+' . a:jump . ' ' . file
Expand Down

0 comments on commit a86ed1c

Please sign in to comment.