(search_buffer): Fix handling of "\\" in a trivial regexp.
[bpt/emacs.git] / src / search.c
index 285bb92..239957e 100644 (file)
@@ -1209,6 +1209,7 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
              if (RE && *base_pat == '\\')
                {
                  len--;
+                 raw_pattern_size--;
                  len_byte--;
                  base_pat++;
                }