aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index b471b93192..49aed19666 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -911,8 +911,8 @@ static void recording_mode(int attr)
{
msg_puts_attr(_("recording"), attr);
if (!shortmess(SHM_RECORDING)) {
- char s[4];
- snprintf(s, ARRAY_SIZE(s), " @%c", reg_recording);
+ char s[7] = { ' ', '@', 0, 0, 0, 0, 0 };
+ utf_char2bytes(reg_recording, s + 2);
msg_puts_attr(s, attr);
}
}