]> git.eshelyaron.com Git - emacs.git/commitdiff
In window_resize_apply adjust margin width, if necessary (Bug#16649).
authorMartin Rudalics <rudalics@gmx.at>
Fri, 7 Feb 2014 10:55:28 +0000 (11:55 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 7 Feb 2014 10:55:28 +0000 (11:55 +0100)
* window.c (window_resize_apply): Adjust margin width, if necessary.

src/ChangeLog
src/window.c

index 99d545cf99bd8c4543822ee1259dd79b6e3469f8..a056eead1f64760697203dc0284455007d8f3d94 100644 (file)
@@ -1,11 +1,12 @@
 2014-02-07  Martin Rudalics  <rudalics@gmx.at>
 
-       Constrain window box and body sizes (Bug#16649).
+       Constrain window box/body sizes and margin widths (Bug#16649).
        * xdisp.c (window_box_width): Don't return less than zero.
        (window_box_left_offset, window_box_right_offset): Don't return
        more than the window's pixel width.
        * window.c (window_body_height, window_body_width): Don't return
        negative value.
+       (window_resize_apply): Adjust margin width, if necessary.
 
 2014-02-07  Glenn Morris  <rgm@gnu.org>
 
index adde3919699b1d3f7370f3ca45eec4731cb30e02..b2c97d52157fba301837d743e654c1758c362a41 100644 (file)
@@ -3923,8 +3923,11 @@ window_resize_apply (struct window *w, bool horflag)
        }
     }
   else
-    /* Bug#15957.  */
-    w->window_end_valid = 0;
+    {
+      adjust_window_margins (w);
+      /* Bug#15957.  */
+      w->window_end_valid = 0;
+    }
 }