]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(ccomplete): fix type mismatch error
authorLars T. Kyllingstad <lars.kyllingstad@sintef.no>
Thu, 6 Jun 2024 16:37:08 +0000 (18:37 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 6 Jun 2024 16:39:03 +0000 (18:39 +0200)
fixes: #14927
closes: #14928

Signed-off-by: Lars T. Kyllingstad <lars.kyllingstad@sintef.no>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/ccomplete.vim

index 7096dcf4ac884638eb7481988d5a932f73fd681b..355f724d0f4249c03633db5906dbcbbcb3701049 100644 (file)
@@ -3,7 +3,7 @@ vim9script noclear
 # Vim completion script
 # Language:    C
 # Maintainer:  The Vim Project <https://github.com/vim/vim>
-# Last Change: 2023 Aug 10
+# Last Change: 2024 Jun 06
 #              Rewritten in Vim9 script by github user lacygoill
 # Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
@@ -210,7 +210,7 @@ export def Complete(findstart: bool, abase: string): any # {{{1
     # Find the variable in the tags file(s)
     var diclist: list<dict<any>> = taglist('^' .. items[0] .. '$')
       # Remove members, these can't appear without something in front.
-      ->filter((_, v: dict<string>): bool =>
+      ->filter((_, v: dict<any>): bool =>
                 v->has_key('kind') ? v.kind != 'm' : true)
 
     res = []