(search_buffer): Call set_search_regs with a byte

position, not a character position.
This commit is contained in:
Gerd Moellmann 2001-02-01 19:21:52 +00:00
parent 891b8b69b4
commit 0353b28fe4
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2001-02-01 Gerd Moellmann <gerd@gnu.org> 2001-02-01 Gerd Moellmann <gerd@gnu.org>
* 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 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
minibuffer-only, minibuffer-only,

View file

@ -1030,7 +1030,7 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
/* Null string is found at starting position. */ /* Null string is found at starting position. */
if (len == 0 || n == 0) if (len == 0 || n == 0)
{ {
set_search_regs (pos, 0); set_search_regs (pos_byte, 0);
return pos; return pos;
} }