mirror of
https://gitlab.com/wsdjeg/vim-galore-zh_cn.git
synced 2025-01-31 20:59:28 +08:00
Use matchend to fix col
This commit is contained in:
parent
61f6228247
commit
e68339b886
@ -33,7 +33,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:find_error(nr, line) abort
|
function! s:find_error(nr, line) abort
|
||||||
let l:error = s:ERRORS[a:nr]
|
let l:error = s:ERRORS[a:nr]
|
||||||
let s:colnr = match(a:line, l:error[1])
|
let s:colnr = matchend(a:line, l:error[1])
|
||||||
if s:colnr != -1
|
if s:colnr != -1
|
||||||
call s:add_to_qf(a:nr)
|
call s:add_to_qf(a:nr)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user