From: David Lawrence Ramsey Date: Fri, 14 Jan 2005 15:27:33 +0000 (+0000) Subject: use the right number of characters when calling the multibyte equivalent X-Git-Tag: v1.3.6~139 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1bdccc5281a32d7f1526847731594181a7a6f179;p=nano.git 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-d3aeb78583b8 --- diff --git a/src/search.c b/src/search.c index 7fb3c81f..10d67979 100644 --- a/src/search.c +++ b/src/search.c @@ -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') ? "" : "...");