aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-02-15 05:42:13 +0000
committerRichard M. Stallman1993-02-15 05:42:13 +0000
commit481399bfac6441d94b3e507ed2ceb622dedbf1d9 (patch)
tree29851bdf1141d0451b862657f0db06ce474abf73 /src
parent3bd779aadb256b7f1c07318a92477f0a9aceafef (diff)
downloademacs-481399bfac6441d94b3e507ed2ceb622dedbf1d9.tar.gz
emacs-481399bfac6441d94b3e507ed2ceb622dedbf1d9.zip
(search_command): When moving to LIM on failure, return LIM.
Diffstat (limited to 'src')
-rw-r--r--src/search.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 9de9bece213..abb38c70241 100644
--- a/src/search.c
+++ b/src/search.c
@@ -502,9 +502,10 @@ search_command (string, bound, noerror, count, direction, RE)
502 { 502 {
503 if (lim < BEGV || lim > ZV) 503 if (lim < BEGV || lim > ZV)
504 abort (); 504 abort ();
505 SET_PT (lim); 505 np = lim;
506 } 506 }
507 return Qnil; 507 else
508 return Qnil;
508 } 509 }
509 510
510 if (np < BEGV || np > ZV) 511 if (np < BEGV || np > ZV)