diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index abb38c70241..0cc5fa7fb74 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -502,7 +502,12 @@ 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); | ||
| 506 | return Qnil; | ||
| 507 | #if 0 /* This would be clean, but maybe programs depend on | ||
| 508 | a value of nil here. */ | ||
| 505 | np = lim; | 509 | np = lim; |
| 510 | #endif | ||
| 506 | } | 511 | } |
| 507 | else | 512 | else |
| 508 | return Qnil; | 513 | return Qnil; |