diff options
| author | Richard M. Stallman | 1993-07-27 07:25:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-27 07:25:54 +0000 |
| commit | 3f57a49957134c4601103d12930583cd8f65ada5 (patch) | |
| tree | 5ea9b2e6613092397477845921478be7b3ca5ec7 /src | |
| parent | 9d021db37bedefd95a42e324299e99e525d73a2a (diff) | |
| download | emacs-3f57a49957134c4601103d12930583cd8f65ada5.tar.gz emacs-3f57a49957134c4601103d12930583cd8f65ada5.zip | |
(search_buffer): If n is 0, just return POS.
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index b43756f0a5c..e0ca9a5bf6d 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -610,7 +610,11 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt) | |||
| 610 | int s1, s2; | 610 | int s1, s2; |
| 611 | 611 | ||
| 612 | /* Null string is found at starting position. */ | 612 | /* Null string is found at starting position. */ |
| 613 | if (!len) | 613 | if (len == 0) |
| 614 | return pos; | ||
| 615 | |||
| 616 | /* Searching 0 times means don't move. */ | ||
| 617 | if (n == 0) | ||
| 614 | return pos; | 618 | return pos; |
| 615 | 619 | ||
| 616 | if (RE) | 620 | if (RE) |