diff options
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 05da6e0ef1..f35912849d 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -677,9 +677,9 @@ static void recording_mode(int attr) return; } - char s[4]; - snprintf(s, ARRAY_SIZE(s), " @%c", reg_recording); - msg_puts_attr(s, attr); + char s[7] = { ' ', '@', 0, 0, 0, 0, 0 }; + utf_char2bytes(reg_recording, s + 2); + msg_puts_attr(s, attr); } void get_trans_bufname(buf_T *buf) |