* window.c (enlarge_window): In new preserve_before code, convert CURBEG from
lisp object to integer before doing arithmetic.
This commit is contained in:
parent
5274126bde
commit
1ab964d755
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-12-27 Ken Raeburn <raeburn@gnu.org>
|
||||
|
||||
* window.c (enlarge_window): In new preserve_before code, convert
|
||||
CURBEG from lisp object to integer before doing arithmetic.
|
||||
|
||||
2001-12-27 Richard M. Stallman <rms@gnu.org>
|
||||
|
||||
* bytecode.c (Fbyte_code): Undo previous change.
|
||||
|
|
|
@ -3394,7 +3394,7 @@ enlarge_window (window, delta, widthflag, preserve_before)
|
|||
{
|
||||
maxdelta = (*sizefun) (parent) - XINT (*sizep);
|
||||
/* Subtract size of siblings before, since we can't take that. */
|
||||
maxdelta -= CURBEG (window) - CURBEG (parent);
|
||||
maxdelta -= XINT (CURBEG (window)) - XINT (CURBEG (parent));
|
||||
}
|
||||
else
|
||||
maxdelta = (!NILP (p->next) ? ((*sizefun) (p->next)
|
||||
|
|
Loading…
Add table
Reference in a new issue