aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-08-27 09:56:58 +0200
committerGitHub <noreply@github.com>2022-08-27 15:56:58 +0800
commit09c6ce8c4e4c6415cca9b834539ed0df461373f6 (patch)
tree95858a9c90478675a5bef5a2860d3ab73f585bc6 /src
parent523600ea6cc1edb7b4d116fdf70437a6b7f226d1 (diff)
downloadrneovim-09c6ce8c4e4c6415cca9b834539ed0df461373f6.tar.gz
rneovim-09c6ce8c4e4c6415cca9b834539ed0df461373f6.tar.bz2
rneovim-09c6ce8c4e4c6415cca9b834539ed0df461373f6.zip
docs: fix typos (#19798)
Co-authored-by: adrian5 <adrian5@users.noreply.github.com> Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/buffer_defs.h4
-rw-r--r--src/nvim/mapping.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index d22ab266f8..58bdd2c0a8 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -366,8 +366,8 @@ struct mapblock {
char m_nowait; // <nowait> used
char m_expr; // <expr> used, m_str is an expression
sctx_T m_script_ctx; // SCTX where map was defined
- char *m_desc; // description of keymap
- bool m_replace_keycodes; // replace termcodes in lua function
+ char *m_desc; // description of mapping
+ bool m_replace_keycodes; // replace keycodes in result of expression
};
/// Used for highlighting in the status line.
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c
index ef44d71165..2364a388b3 100644
--- a/src/nvim/mapping.c
+++ b/src/nvim/mapping.c
@@ -293,7 +293,7 @@ static bool set_maparg_lhs_rhs(const char *const orig_lhs, const size_t orig_lhs
replaced = replace_termcodes(orig_rhs, orig_rhs_len, &rhs_buf, REPTERM_DO_LT, NULL,
cpo_flags);
mapargs->rhs_len = STRLEN(replaced);
- // XXX: replace_termcodes may produce an empty string even if orig_rhs is non-empty
+ // NB: replace_termcodes may produce an empty string even if orig_rhs is non-empty
// (e.g. a single ^V, see :h map-empty-rhs)
mapargs->rhs_is_noop = orig_rhs_len != 0 && mapargs->rhs_len == 0;
mapargs->rhs = (char_u *)replaced;