diff options
author | Raphael <glephunter@gmail.com> | 2024-01-22 16:04:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 16:04:50 +0800 |
commit | 12d123959f56636473112d86ec5977ef993c58e5 (patch) | |
tree | 319deb36b20fe858b82318373dfe8171325900fc /runtime | |
parent | e68decab0352d553bd2463842d96379f56073a1c (diff) | |
download | rneovim-12d123959f56636473112d86ec5977ef993c58e5.tar.gz rneovim-12d123959f56636473112d86ec5977ef993c58e5.tar.bz2 rneovim-12d123959f56636473112d86ec5977ef993c58e5.zip |
fix(eval): properly support checking v:lua function in exists() (#27124)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 1 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 775d49d2f2..9750031efd 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1369,6 +1369,7 @@ exists({expr}) *exists()* echo exists("*strftime") echo exists("*s:MyFunc") echo exists("*MyFunc") + echo exists("*v:lua.Func") echo exists("bufcount") echo exists(":Make") echo exists("#CursorHold") diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 50f6e4da52..011bfb7c11 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -1709,6 +1709,7 @@ function vim.fn.exepath(expr) end --- echo exists("*strftime") --- echo exists("*s:MyFunc") --- echo exists("*MyFunc") +--- echo exists("*v:lua.Func") --- echo exists("bufcount") --- echo exists(":Make") --- echo exists("#CursorHold") |