diff --git a/autoload/unite/sources/vimtex_toc.vim b/autoload/unite/sources/vimtex_toc.vim index 3fecd3e..c1b12e2 100644 --- a/autoload/unite/sources/vimtex_toc.vim +++ b/autoload/unite/sources/vimtex_toc.vim @@ -66,7 +66,7 @@ function! s:create_candidate(entry, maxlevel) " {{{1 \ 'word' : title, \ 'abbr' : title . ' @' . level, \ 'action__path' : a:entry.file, - \ 'action__line' : a:entry.line, + \ 'action__line' : get(a:entry, 'line', 0), \ } endfunction