aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-29 20:32:40 +0800
committerGitHub <noreply@github.com>2023-11-29 20:32:40 +0800
commita6cba103cebce535279db197f9efeb34e9d1171f (patch)
tree17a8d9b4ecabf8e2c02c07e18b81c85f2e7c429f /src/nvim/eval.lua
parentf4001d27efae44c6c07678ad2c72eed5f1a25ea8 (diff)
downloadrneovim-a6cba103cebce535279db197f9efeb34e9d1171f.tar.gz
rneovim-a6cba103cebce535279db197f9efeb34e9d1171f.tar.bz2
rneovim-a6cba103cebce535279db197f9efeb34e9d1171f.zip
refactor: move some constants out of vim_defs.h (#26298)
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 6355dd6b93..55f4721c3a 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -6198,8 +6198,8 @@ M.funcs = {
"mode_bits" Nvim's internal binary representation of "mode".
|mapset()| ignores this; only "mode" is used.
See |maplist()| for usage examples. The values
- are from src/nvim/vim.h and may change in the
- future.
+ are from src/nvim/state_defs.h and may change in
+ the future.
The dictionary can be used to restore a mapping with
|mapset()|.
@@ -6287,8 +6287,8 @@ M.funcs = {
endfor
echo saved_maps->mapnew({_, m -> m.lhs})
<The values of the mode_bits are defined in Nvim's
- src/nvim/vim.h file and they can be discovered at runtime
- using |:map-commands| and "maplist()". Example: >vim
+ src/nvim/state_defs.h file and they can be discovered at
+ runtime using |:map-commands| and "maplist()". Example: >vim
omap xyzzy <Nop>
let op_bit = maplist()->filter(
\ {_, m -> m.lhs == 'xyzzy'})[0].mode_bits