mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-04 19:28:46 +08:00
highlighter: vim9 script implementation of s:group_not_done
This commit is contained in:
1 parent
3e93c212cc
commit
a9f525f8da
1 file changed
+11
@@ -324,4 +324,15 @@ else
|
||||
_rgb = map(split(rgb[1:], '..\zs'), {_, v -> str2nr("0x" .. v)})
|
||||
return airline#msdos#round_msdos_colors(_rgb)
|
||||
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
|
||||
Reference in new issue
Block a user