]> git.eshelyaron.com Git - emacs.git/commitdiff
(search_buffer): Call set_search_regs with a byte
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Feb 2001 19:21:52 +0000 (19:21 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Feb 2001 19:21:52 +0000 (19:21 +0000)
position, not a character position.

src/ChangeLog
src/search.c

index 92635c44990e4c4d099c3f66dca62934ef35a1aa..a9e697c7945ea681c5b371fe87e4bcca6fcd5f5f 100644 (file)
@@ -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,
 
index 99da344c1baaf143dc3826dfeb63caca45da707f..0bf881565a91f82b28894dc5c689ddf76a5a5f4f 100644 (file)
@@ -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;
     }