lsearch() with no results no longer returns #-1; error still gets you #-1
authorAri Johnson <ari@cobramush.org>
Tue, 20 Feb 2007 14:58:35 +0000 (14:58 +0000)
committerAri Johnson <ari@cobramush.org>
Tue, 20 Feb 2007 14:58:35 +0000 (14:58 +0000)
src/wiz.c

index e49f5f0f621c991512c9cbe018f11e734a797109..7281a9dfa3c418e25e1081532fe569a4f6ae166d 100644 (file)
--- 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) {