From d3fa90044436ad28e4b36a8bbd32da5ce65d8f9c Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Sat, 28 Jan 2017 14:14:54 -0800 Subject: [PATCH] use a:ctx['col'] and a:ctx['typed'] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7d9e2c..77cb2da 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ asyncomplete.vim deliberately does not contain any sources. Please use one of th ```vim function! s:js_completor(opt, ctx) abort - let l:col = col('.') - let l:typed = strpart(getline('.'), 0, l:col) + let l:col = a:ctx['col'] + let l:typed = a:ctx['typed'] let l:kw = matchstr(l:typed, '\v\S+$') let l:kwlen = len(l:kw)