runtime(ccomplete): fix type mismatch error Commit: https://github.com/vim/vim/commit/d9ec67691170cd3764cbf767636305e47987340f Author: Lars T. Kyllingstad <lars.kyllings...@sintef.no> Date: Thu Jun 6 18:37:08 2024 +0200
runtime(ccomplete): fix type mismatch error fixes: https://github.com/vim/vim/issues/14927 closes: https://github.com/vim/vim/issues/14928 Signed-off-by: Lars T. Kyllingstad <lars.kyllings...@sintef.no> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim index 7096dcf4a..355f724d0 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 <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 <b...@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 = [] -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sFGEa-00E5v6-Qy%40256bit.org.