[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/search.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/search.c |
Date: |
Mon, 14 Oct 2002 21:19:21 -0400 |
Index: emacs/src/search.c
diff -c emacs/src/search.c:1.169 emacs/src/search.c:1.170
*** emacs/src/search.c:1.169 Sun Sep 29 13:51:45 2002
--- emacs/src/search.c Sun Sep 29 15:59:33 2002
***************
*** 2569,2582 ****
/* Adjust search data for this change. */
{
int change = newpoint - search_regs.end[sub];
int i;
for (i = 0; i < search_regs.num_regs; i++)
{
! if (search_regs.start[i] > newpoint)
search_regs.start[i] += change;
! if (search_regs.end[i] > newpoint)
search_regs.end[i] += change;
}
}
--- 2569,2583 ----
/* 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] > oldend)
search_regs.start[i] += change;
! if (search_regs.end[i] > oldend)
search_regs.end[i] += change;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/search.c,
Kenichi Handa <=