mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
* window.c (size_window): Avoid needless test at loop start.
This commit is contained in:
parent
15cc1ab1f0
commit
78eb494eca
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2011-05-11 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* window.c (size_window): Avoid needless test at loop start.
|
||||
|
||||
2011-05-10 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* image.c (Finit_image_library): Return t for built-in image types,
|
||||
|
|
|
|||
|
|
@ -3094,11 +3094,14 @@ size_window (Lisp_Object window, int size, int width_p, int nodelete_p, int firs
|
|||
Lisp_Object last_child;
|
||||
int child_size;
|
||||
|
||||
for (child = *forward; !NILP (child); child = c->next)
|
||||
child = *forward;
|
||||
do
|
||||
{
|
||||
c = XWINDOW (child);
|
||||
last_child = child;
|
||||
child = c->next;
|
||||
}
|
||||
while (!NILP (child));
|
||||
|
||||
child_size = WINDOW_TOTAL_SIZE (c, width_p);
|
||||
size_window (last_child, size - old_size + child_size,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue