aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorPaul Eggert2011-05-10 22:29:31 -0700
committerPaul Eggert2011-05-10 22:29:31 -0700
commit78eb494ecaa1a20112080faedfd30e616c5be76b (patch)
tree99f081e67097fad23c8105e59846dfb64bbab4e8 /src/window.c
parent15cc1ab1f0607f32ac76fa689df140cb1b3e27bd (diff)
downloademacs-78eb494ecaa1a20112080faedfd30e616c5be76b.tar.gz
emacs-78eb494ecaa1a20112080faedfd30e616c5be76b.zip
* window.c (size_window): Avoid needless test at loop start.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 4dbee41c5f4..bc9f31e03e8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3094,11 +3094,14 @@ size_window (Lisp_Object window, int size, int width_p, int nodelete_p, int firs
3094 Lisp_Object last_child; 3094 Lisp_Object last_child;
3095 int child_size; 3095 int child_size;
3096 3096
3097 for (child = *forward; !NILP (child); child = c->next) 3097 child = *forward;
3098 do
3098 { 3099 {
3099 c = XWINDOW (child); 3100 c = XWINDOW (child);
3100 last_child = child; 3101 last_child = child;
3102 child = c->next;
3101 } 3103 }
3104 while (!NILP (child));
3102 3105
3103 child_size = WINDOW_TOTAL_SIZE (c, width_p); 3106 child_size = WINDOW_TOTAL_SIZE (c, width_p);
3104 size_window (last_child, size - old_size + child_size, 3107 size_window (last_child, size - old_size + child_size,