From: Lars T. Kyllingstad Date: Thu, 6 Jun 2024 16:37:08 +0000 (+0200) Subject: runtime(ccomplete): fix type mismatch error X-Git-Tag: v9.1.0471~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9ec67691170cd3764cbf767636305e47987340f;p=thirdparty%2Fvim.git runtime(ccomplete): fix type mismatch error fixes: #14927 closes: #14928 Signed-off-by: Lars T. Kyllingstad Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim index 7096dcf4ac..355f724d0f 100644 --- a/runtime/autoload/ccomplete.vim +++ b/runtime/autoload/ccomplete.vim @@ -3,7 +3,7 @@ vim9script noclear # Vim completion script # Language: C # Maintainer: The Vim Project -# Last Change: 2023 Aug 10 +# Last Change: 2024 Jun 06 # Rewritten in Vim9 script by github user lacygoill # Former Maintainer: Bram Moolenaar @@ -210,7 +210,7 @@ export def Complete(findstart: bool, abase: string): any # {{{1 # Find the variable in the tags file(s) var diclist: list> = taglist('^' .. items[0] .. '$') # Remove members, these can't appear without something in front. - ->filter((_, v: dict): bool => + ->filter((_, v: dict): bool => v->has_key('kind') ? v.kind != 'm' : true) res = []