Skip to content

Commit e9cc812

Browse files
committed
Not complete : if there is one
1 parent 1ffbf89 commit e9cc812

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

autoload/csscomplete.vim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,17 @@ function! csscomplete#CompleteCSS(findstart, base)
9393
if len(borders) == 0 || borders[max(keys(borders))] =~ '^\%(openbrace\|semicolon\|opencomm\|closecomm\|style\)$'
9494
" Complete properties
9595

96-
9796
let entered_property = matchstr(line, '.\{-}\zs[a-zA-Z-]*$')
9897

9998
for m in s:values
99+
let postfix = ''
100+
if strridx(after, ':') < 0
101+
let postfix = ': '
102+
endif
100103
if m =~? '^'.entered_property
101-
call add(res, m . ': ')
104+
call add(res, m . postfix)
102105
elseif m =~? entered_property
103-
call add(res2, m . ': ')
106+
call add(res2, m . postfix)
104107
endif
105108
endfor
106109

0 commit comments

Comments
 (0)