use the right number of characters when calling the multibyte equivalent
of strnlen() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2263 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
9b95ca8c29
commit
1bdccc5281
|
@ -84,7 +84,7 @@ void not_found_msg(const char *str)
|
|||
assert(str != NULL);
|
||||
|
||||
disp = display_string(str, 0, (COLS / 2) + 1, FALSE);
|
||||
numchars = mbstrnlen(disp, COLS / 2);
|
||||
numchars = mbstrnlen(disp, actual_x(disp, COLS / 2));
|
||||
|
||||
statusbar(_("\"%.*s%s\" not found"), numchars, disp,
|
||||
(disp[numchars] == '\0') ? "" : "...");
|
||||
|
|
Loading…
Reference in New Issue