highlighter: vim9 script implementation of s:group_not_done

This commit is contained in:
Christian 2020-11-18 08:34:55 +01:00 committed by Christian Brabandt
parent 3e93c212cc
commit a9f525f8da
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -324,4 +324,15 @@ else
_rgb = map(split(rgb[1:], '..\zs'), {_, v -> str2nr("0x" .. v)}) _rgb = map(split(rgb[1:], '..\zs'), {_, v -> str2nr("0x" .. v)})
return airline#msdos#round_msdos_colors(_rgb) return airline#msdos#round_msdos_colors(_rgb)
enddef enddef
def s:group_not_done(list: list<string>, name: string): bool # {{{2
if index(list, name) == -1
add(list, name)
return true
else
if &vbs
:echomsg printf("airline: group: %s already done, skipping", name)
endif
return false
endif
enddef
endif endif