Mercurial > emacs
changeset 89850:885b083d5599
(simple_search): Fix settingthis_pos_byte in backward search.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 09 Mar 2004 02:19:36 +0000 |
parents | 85a6eb05dc8f |
children | b2d1259417e3 |
files | src/search.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/search.c Mon Mar 08 23:16:20 2004 +0000 +++ b/src/search.c Tue Mar 09 02:19:36 2004 +0000 @@ -1358,13 +1358,14 @@ { /* Try matching at position POS. */ int this_pos = pos - len; - int this_pos_byte = pos_byte - len_byte; + int this_pos_byte; int this_len = len; int this_len_byte = len_byte; unsigned char *p = pat; if (pos - len < lim) goto stop; + this_pos_byte = CHAR_TO_BYTE (this_pos); while (this_len > 0) {