Commit 5b88a2c5 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Fix previous change.

parent 580f6aa5
......@@ -1012,7 +1012,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(set-language-environment current-language-environment)))
;; Do this here in case the init file sets mail-host-address.
(or (equal user-mail-address "")
(if (equal user-mail-address "")
(setq user-mail-address (concat (user-login-name) "@"
(or mail-host-address
(system-name)))))
......
......@@ -2569,14 +2569,15 @@ since only regular expressions have distinguished subexpressions. */)
/* Adjust search data for this change. */
{
int oldend = search_regs.end[sub];
int change = newpoint - search_regs.end[sub];
int i;
for (i = 0; i < search_regs.num_regs; i++)
{
if (search_regs.start[i] > newpoint)
if (search_regs.start[i] > oldend)
search_regs.start[i] += change;
if (search_regs.end[i] > newpoint)
if (search_regs.end[i] > oldend)
search_regs.end[i] += change;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment