diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-06 17:14:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 17:14:37 +0800 |
commit | ad7064bd83aef7caadb51c988c0dcb9054624fcf (patch) | |
tree | 87dccde4e4b661c283e9c75556a3853393ad3135 /src/nvim/lua | |
parent | 5f0fbe7c2fae82c3bf911d726af483c8a0983379 (diff) | |
download | rneovim-ad7064bd83aef7caadb51c988c0dcb9054624fcf.tar.gz rneovim-ad7064bd83aef7caadb51c988c0dcb9054624fcf.tar.bz2 rneovim-ad7064bd83aef7caadb51c988c0dcb9054624fcf.zip |
vim-patch:8.1.1210: support for user commands is spread out (#19653)
Problem: Support for user commands is spread out. No good reason to make
user commands optional.
Solution: Move user command support to usercmd.c. Always enable the
user_commands feature.
https://github.com/vim/vim/commit/ac9fb18020d7e8bf16d02d45fbb02cf47328aaf7
Diffstat (limited to 'src/nvim/lua')
-rw-r--r-- | src/nvim/lua/executor.c | 2 | ||||
-rw-r--r-- | src/nvim/lua/executor.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index 197a209e97..661dbfc4c2 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -21,7 +21,6 @@ #include "nvim/event/loop.h" #include "nvim/event/time.h" #include "nvim/ex_cmds2.h" -#include "nvim/ex_docmd.h" #include "nvim/ex_getln.h" #include "nvim/extmark.h" #include "nvim/func_attr.h" @@ -40,6 +39,7 @@ #include "nvim/profile.h" #include "nvim/screen.h" #include "nvim/undo.h" +#include "nvim/usercmd.h" #include "nvim/version.h" #include "nvim/vim.h" #include "nvim/window.h" diff --git a/src/nvim/lua/executor.h b/src/nvim/lua/executor.h index e96494ec5a..2afbbebfe7 100644 --- a/src/nvim/lua/executor.h +++ b/src/nvim/lua/executor.h @@ -8,9 +8,9 @@ #include "nvim/assert.h" #include "nvim/eval/typval.h" #include "nvim/ex_cmds_defs.h" -#include "nvim/ex_docmd.h" #include "nvim/func_attr.h" #include "nvim/lua/converter.h" +#include "nvim/usercmd.h" // Generated by msgpack-gen.lua void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL; |