Mercurial > emacs
diff src/window.c @ 105769:a71b9df39f6e
* window.c (grow_mini_window): Comment out "delta >= 0" assertion.
For delta < 0, skip check that only makes sense when the mini-window
is going to be enlarged. (Bug#4534)
| author | Juanma Barranquero <lekktu@gmail.com> |
|---|---|
| date | Mon, 26 Oct 2009 10:04:37 +0000 |
| parents | 5cbf00ec9f94 |
| children | 21bdda3ded62 |
line wrap: on
line diff
--- a/src/window.c Mon Oct 26 09:29:12 2009 +0000 +++ b/src/window.c Mon Oct 26 10:04:37 2009 +0000 @@ -4648,12 +4648,15 @@ struct window *root; xassert (MINI_WINDOW_P (w)); - xassert (delta >= 0); + /* Commenting out the following assertion goes against the stated interface + of the function, but it currently does not seem to do anything useful. + See discussion of this issue in the thread for bug#4534. + xassert (delta >= 0); */ /* Compute how much we can enlarge the mini-window without deleting other windows. */ root = XWINDOW (FRAME_ROOT_WINDOW (f)); - if (delta) + if (delta > 0) { int min_height = window_min_size (root, 0, 0, 0, 0); if (XFASTINT (root->total_lines) - delta < min_height)
