aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-01 20:32:59 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-01 20:53:43 +0800
commit689f5d604e59eba1ddab6f91b458a8163dc6629d (patch)
tree7d3e74d86ba98b50c6ecc402a54eecafe13e1eef /src/nvim/lua/executor.c
parent56bf026deac8eddb1abc8e1d46fde992cfc67ac2 (diff)
downloadrneovim-689f5d604e59eba1ddab6f91b458a8163dc6629d.tar.gz
rneovim-689f5d604e59eba1ddab6f91b458a8163dc6629d.tar.bz2
rneovim-689f5d604e59eba1ddab6f91b458a8163dc6629d.zip
feat(api): add support for :horizontal modifier
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index f144e47c3a..2315ecd874 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -2103,6 +2103,8 @@ int nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap, bool preview)
lua_pushboolean(lstate, cmdmod.cmod_split & WSP_VERT);
lua_setfield(lstate, -2, "vertical");
+ lua_pushboolean(lstate, cmdmod.cmod_split & WSP_HOR);
+ lua_setfield(lstate, -2, "horizontal");
lua_pushboolean(lstate, cmdmod.cmod_flags & CMOD_SILENT);
lua_setfield(lstate, -2, "silent");
lua_pushboolean(lstate, cmdmod.cmod_flags & CMOD_ERRSILENT);