diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-01 21:37:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 21:37:01 +0800 |
commit | 96c494dec345f9a3dd2676048292267552e3f5f8 (patch) | |
tree | 20be26182c603ee6126624b6d90741c16e1e6f65 /src/nvim/getchar.h | |
parent | f40adf770d090d12f7b14dd519fe649ada40bfe6 (diff) | |
download | rneovim-96c494dec345f9a3dd2676048292267552e3f5f8.tar.gz rneovim-96c494dec345f9a3dd2676048292267552e3f5f8.tar.bz2 rneovim-96c494dec345f9a3dd2676048292267552e3f5f8.zip |
refactor: correct comments and assertions about mapping rhs <Nop> (#18821)
Also avoid referring to mappings as "keymaps" in commands and docs.
*map_empty_rhs* *map-empty-rhs*
You can create an empty {rhs} by typing nothing after a single CTRL-V (you
have to type CTRL-V two times). Unfortunately, you cannot do this in a vimrc
file.
Diffstat (limited to 'src/nvim/getchar.h')
-rw-r--r-- | src/nvim/getchar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.h b/src/nvim/getchar.h index 237f0632bd..ddd6d81aef 100644 --- a/src/nvim/getchar.h +++ b/src/nvim/getchar.h @@ -54,8 +54,8 @@ struct map_arguments { char_u *rhs; /// The {rhs} of the mapping. size_t rhs_len; - LuaRef rhs_lua; /// lua function as rhs - bool rhs_is_noop; /// True when the {orig_rhs} is <nop>. + LuaRef rhs_lua; /// lua function as {rhs} + bool rhs_is_noop; /// True when the {rhs} should be <Nop>. char_u *orig_rhs; /// The original text of the {rhs}. size_t orig_rhs_len; |