From 491449d62ed898fb91dc8eea2633f95ab1a4d372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 27 Oct 2016 16:08:24 +0200 Subject: [PATCH] Fixed #608: Remove ending bracket in TOC --- autoload/vimtex/toc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/toc.vim b/autoload/vimtex/toc.vim index 4a01515..77ef95c 100644 --- a/autoload/vimtex/toc.vim +++ b/autoload/vimtex/toc.vim @@ -429,7 +429,7 @@ endfunction " }}}1 function! s:parse_line_sec_title(title) " {{{1 - let l:title = substitute(a:title, '\}\s*$', '', '') + let l:title = substitute(a:title, '\v%(\]|\})\s*$', '', '') return s:clear_texorpdfstring(l:title) endfunction