Skip to content

Commit

Permalink
Second : is optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
bogado committed Feb 9, 2012
1 parent 8ff0ef4 commit cfc14a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/file_line.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function! s:gotoline()
endif

" Accept file:line:column: or file:line:column and file:line also
let names = matchlist( file, '\(.\{-1,}\):\%(\(\d\+\):\(\d*\):\?\)\?$')
let names = matchlist( file, '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$')

if empty(names)
return
Expand Down

0 comments on commit cfc14a4

Please sign in to comment.