From bb670948ac3d5b447a3a0a35e16784361baa8c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 13 Mar 2014 10:49:40 +0100 Subject: [PATCH] Minor simplification of in_comment function --- autoload/latex/util.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/autoload/latex/util.vim b/autoload/latex/util.vim index fa2e283..8a3204d 100644 --- a/autoload/latex/util.vim +++ b/autoload/latex/util.vim @@ -227,9 +227,7 @@ endfunction " {{{1 latex#util#in_comment function! latex#util#in_comment(...) - let line = a:0 >= 1 ? a:1 : line('.') - let col = a:0 >= 2 ? a:2 : col('.') - return synIDattr(synID(line, col, 0), "name") =~# '^texComment' + return synIDattr(synID(line('.'), col('.'), 0), "name") =~# '^texComment' endfunction " {{{1 latex#util#kpsewhich