aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-08-10 17:13:52 -0600
committerJosh Rahm <rahm@google.com>2022-08-10 17:13:52 -0600
commit234128e54154932d194f0ca3d09c86c9b756c390 (patch)
tree6bbc51b03b7e9b7f89c4fa5670fe3062dab56d4f /src/nvim/ops.c
parent201315a739c7d184004ec8a09a998fbe0bee56bd (diff)
downloadrneovim-234128e54154932d194f0ca3d09c86c9b756c390.tar.gz
rneovim-234128e54154932d194f0ca3d09c86c9b756c390.tar.bz2
rneovim-234128e54154932d194f0ca3d09c86c9b756c390.zip
Fix messaging for recording into userregs.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index e4b582c89b..d18824f0c1 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1096,7 +1096,7 @@ int do_record(int c)
// Name of requested register, or empty string for unnamed operation.
char buf[NUMBUFLEN + 5];
int len = (*utf_char2len)(regname);
- buf[0] = (char)regname;
+ utf_char2bytes(regname, buf);
buf[len] = NUL;
(void)tv_dict_add_str(dict, S_LEN("regname"), buf);
tv_dict_set_keys_readonly(dict);