Skip to content

Commit 5cf57e0

Browse files
committed
Bug fix: Don't perform automatic completion in strings/comments
1 parent 3c49c27 commit 5cf57e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/xolox/lua.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: October 16, 2011
3+
" Last Change: October 23, 2011
44
" URL: http://peterodding.com/code/vim/lua-ftplugin
55

6-
let g:xolox#lua#version = '0.6.24'
6+
let g:xolox#lua#version = '0.6.25'
77
let s:miscdir = expand('<sfile>:p:h:h:h') . '/misc/lua-ftplugin'
88
let s:omnicomplete_script = s:miscdir . '/omnicomplete.lua'
99
let s:globals_script = s:miscdir . '/globals.lua'
@@ -225,7 +225,7 @@ function! xolox#lua#tokeniscode() " {{{1
225225
endfunction
226226

227227
function! s:getsynid(transparent)
228-
let id = synID(line('.'), col('.'), 1)
228+
let id = synID(line('.'), col('.') - 1, 1)
229229
if a:transparent
230230
let id = synIDtrans(id)
231231
endif

0 commit comments

Comments
 (0)