From 77beb3d6e8e30ffb35ddec5705f3e5dabe111cfc Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 31 Jan 2015 10:16:09 +0100 Subject: [PATCH] Fix off-by-one error in s:getsynid This fixes skipping with matchit (via xolox#lua#matchit_ignore). It was changed in 5cf57e068, but this looks like not being done intentionally. --- autoload/xolox/lua.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/xolox/lua.vim b/autoload/xolox/lua.vim index d67616b..ee7b87b 100644 --- a/autoload/xolox/lua.vim +++ b/autoload/xolox/lua.vim @@ -250,7 +250,7 @@ function! xolox#lua#tokeniscode() " {{{1 endfunction function! s:getsynid(transparent) - let id = synID(line('.'), col('.') - 1, 1) + let id = synID(line('.'), col('.'), 1) if a:transparent let id = synIDtrans(id) endif