commit 1bdccc5281a32d7f1526847731594181a7a6f179
parent 9b95ca8c295af8823cd35f832610b88eac2d4bd5
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 14 Jan 2005 15:27:33 +0000
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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') ? "" : "...");