aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2006-02-08 13:39:52 +0000
committerJan Djärv2006-02-08 13:39:52 +0000
commite99c752190064f6d73540fb61556dabdbc0b83f9 (patch)
tree3a1023e1ec3978a7637cb8869fd8e8fccd9a7b7e /src
parentab09adac9b3c3d45c89ac05cbfd39313782ce165 (diff)
downloademacs-e99c752190064f6d73540fb61556dabdbc0b83f9.tar.gz
emacs-e99c752190064f6d73540fb61556dabdbc0b83f9.zip
* window.c (adjust_window_trailing_edge): Check that shrinking
does not set a window to size zero or less.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/window.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 477d7e421f3..40d498b5d47 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-02-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * window.c (adjust_window_trailing_edge): Check that shrinking
4 does not set a window to size zero or less.
5
12006-02-08 Miles Bader <miles@gnu.org> 62006-02-08 Miles Bader <miles@gnu.org>
2 7
3 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead 8 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
diff --git a/src/window.c b/src/window.c
index 1df0320f01c..5ffb8c95593 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4284,6 +4284,14 @@ adjust_window_trailing_edge (window, delta, horiz_flag)
4284 { 4284 {
4285 if (!NILP (XWINDOW (window)->next)) 4285 if (!NILP (XWINDOW (window)->next))
4286 { 4286 {
4287 /* This may happen for the minibuffer. In that case
4288 the window_deletion_count check below does not work. */
4289 if (XINT (CURSIZE (p->next)) - delta <= 0)
4290 {
4291 Fset_window_configuration (old_config);
4292 error ("Cannot adjust window size as specified");
4293 }
4294
4287 XSETINT (CURBEG (p->next), 4295 XSETINT (CURBEG (p->next),
4288 XINT (CURBEG (p->next)) + delta); 4296 XINT (CURBEG (p->next)) + delta);
4289 size_window (p->next, XINT (CURSIZE (p->next)) - delta, 4297 size_window (p->next, XINT (CURSIZE (p->next)) - delta,