Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plugin/file_line.vim
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ function! s:gotoline()
let file_name = l:names[1]
let line_num = l:names[2] == ''? '0' : l:names[2]
let col_num = l:names[3] == ''? '0' : l:names[3]
call s:reopenAndGotoLine(file_name, line_num, col_num)
return file_name
if filereadable(file_name)
call s:reopenAndGotoLine(file_name, line_num, col_num)
return file_name
endif
endif
endfor
return file
Expand Down