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') ? "" : "...");