From 02eab915e7373231861d9596de163be341f255c5 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 8 Oct 2024 20:35:12 +0200 Subject: [PATCH] Fix 'GetContext' --- .vim/ftplugin/pandoc/wiki.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vim/ftplugin/pandoc/wiki.vim b/.vim/ftplugin/pandoc/wiki.vim index 17f4b1e..8d928f7 100644 --- a/.vim/ftplugin/pandoc/wiki.vim +++ b/.vim/ftplugin/pandoc/wiki.vim @@ -10,6 +10,8 @@ func! GetContext() echo 'math_inline' elseif index(matches, 'pandocLaTeXMathBlock') >= 0 echo 'math_block' + elseif !empty(matches) + echo matches[0] else echo '' endif