From: Gerd Moellmann Date: Thu, 1 Feb 2001 19:21:52 +0000 (+0000) Subject: (search_buffer): Call set_search_regs with a byte X-Git-Tag: emacs-pretest-21.0.98~216 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0353b28fe4796c51df832ec16ac4742ec338fbb4;p=emacs.git (search_buffer): Call set_search_regs with a byte position, not a character position. --- diff --git a/src/ChangeLog b/src/ChangeLog index 92635c44990..a9e697c7945 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-02-01 Gerd Moellmann + * search.c (search_buffer): Call set_search_regs with a byte + position, not a character position. + * xfns.c (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only, diff --git a/src/search.c b/src/search.c index 99da344c1ba..0bf881565a9 100644 --- a/src/search.c +++ b/src/search.c @@ -1030,7 +1030,7 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n, /* Null string is found at starting position. */ if (len == 0 || n == 0) { - set_search_regs (pos, 0); + set_search_regs (pos_byte, 0); return pos; }