From 36bfb9ee9d613e498b596c162a3edee09784912f Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 20 Feb 2007 14:58:35 +0000 Subject: [PATCH] lsearch() with no results no longer returns #-1; error still gets you #-1 --- src/wiz.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wiz.c b/src/wiz.c index e49f5f0..7281a9d 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -1286,7 +1286,6 @@ FUNCTION(fun_lsearch) safe_str("#-1", buff, bp); } else if (nresults == 0) { notify(executor, T("Nothing found.")); - safe_str("#-1", buff, bp); } else { int first = 1, n; if (!rev) { -- 2.30.2