Mercurial > emacs
changeset 4299:7a2e1d7362c5
(search_buffer): If n is 0, just return POS.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 27 Jul 1993 07:25:54 +0000 |
parents | 2455c90e1371 |
children | 3596e40f5c4a |
files | src/search.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/search.c Tue Jul 27 05:51:39 1993 +0000 +++ b/src/search.c Tue Jul 27 07:25:54 1993 +0000 @@ -610,7 +610,11 @@ int s1, s2; /* Null string is found at starting position. */ - if (!len) + if (len == 0) + return pos; + + /* Searching 0 times means don't move. */ + if (n == 0) return pos; if (RE)