From 18c9638f17cea428b8abc49ca64a5a4491b01a4f Mon Sep 17 00:00:00 2001 From: oppara Date: Thu, 2 Apr 2026 00:10:54 +0900 Subject: [PATCH] fix: check type of vim.list/vim.dict before using as function On Neovim 0.12+, vim.list and vim.dict are table/module values, not nil. The previous 'or' fallback never triggered, causing: E5113: attempt to call upvalue 'list' (a table value) Fix by checking type() == 'function' before assigning. Fixes #141 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- plugin/jetpack.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/jetpack.vim b/plugin/jetpack.vim index 4e64dc1..ee1318b 100644 --- a/plugin/jetpack.vim +++ b/plugin/jetpack.vim @@ -793,8 +793,8 @@ if !has('nvim') && !(has('lua') && has('patch-8.2.0775')) endif lua<