mirror of
https://gitlab.com/wsdjeg/vim-galore-zh_cn.git
synced 2025-01-31 16:19:27 +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
|
||||
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
|
||||
call s:add_to_qf(a:nr)
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user