changeset 1877:7786f61ec635

(search_command): When moving to LIM on failure, return LIM.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Feb 1993 05:42:13 +0000
parents 0ddafa88e654
children 1c26d0049d4f
files src/search.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Sun Feb 14 23:08:25 1993 +0000
+++ b/src/search.c	Mon Feb 15 05:42:13 1993 +0000
@@ -502,9 +502,10 @@
 	{
 	  if (lim < BEGV || lim > ZV)
 	    abort ();
-	  SET_PT (lim);
+	  np = lim;
 	}
-      return Qnil;
+      else
+	return Qnil;
     }
 
   if (np < BEGV || np > ZV)