(search_buffer): Call set_search_regs with a byte
position, not a character position.
This commit is contained in:
parent
891b8b69b4
commit
0353b28fe4
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
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
|
||||
minibuffer-only,
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue