We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b965f99 commit c7595d2Copy full SHA for c7595d2
autoload/csscomplete.vim
@@ -20,7 +20,6 @@ function! csscomplete#CompleteCSS(findstart, base)
20
while start >= 0 && line[start - 1] =~ '\%(\k\|-\)'
21
let start -= 1
22
endwhile
23
- let b:after = line[compl_begin :]
24
let b:compl_context = line[0:compl_begin]
25
return start
26
endif
@@ -38,11 +37,14 @@ function! csscomplete#CompleteCSS(findstart, base)
38
37
" 5. if @ complete at-rule
39
" 6. if ! complete important
40
if exists("b:compl_context")
+ let line = getline('.')
41
+ let compl_begin = col('.') - 2
42
+ let after = line[compl_begin:]
43
let line = b:compl_context
- let after = b:after
44
unlet! b:compl_context
45
else
46
let line = a:base
47
+ let after = ''
48
49
50
let res = []
0 commit comments