From e5609cc0e279bb1ebfa403b638e3930d43e7f64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nic=20Soud=C3=A9e?= Date: Fri, 21 Jan 2022 16:14:06 -0500 Subject: [PATCH] Use Unicode_char_strlcat for unicode padding --- src/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readline.c b/src/readline.c index ab115572..d21e7046 100644 --- a/src/readline.c +++ b/src/readline.c @@ -539,7 +539,7 @@ byte Readline_ex_unicode(word x_pos, word y_pos, char * str, word * str_unicode, // pad the right side of visible area with spaces to erase any garbage padding = visible_size - Unicode_strlen(display_string_unicode); while (padding > 0) { - Unicode_strlcat(display_string_unicode, " ", 1); + Unicode_char_strlcat(display_string_unicode, " ", 1); padding--; }