diff options
| author | Martin Rudalics | 2014-02-07 11:55:28 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-02-07 11:55:28 +0100 |
| commit | 9be95071f4d78ea1f285aff884f55cf1424aaa6a (patch) | |
| tree | 444cdebd8da9efedd7af501ee21428363acaddfc | |
| parent | dc0e4c48518b5154cfcec60b710da50883a671dc (diff) | |
| download | emacs-9be95071f4d78ea1f285aff884f55cf1424aaa6a.tar.gz emacs-9be95071f4d78ea1f285aff884f55cf1424aaa6a.zip | |
In window_resize_apply adjust margin width, if necessary (Bug#16649).
* window.c (window_resize_apply): Adjust margin width, if necessary.
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/window.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 99d545cf99b..a056eead1f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | 2014-02-07 Martin Rudalics <rudalics@gmx.at> | 1 | 2014-02-07 Martin Rudalics <rudalics@gmx.at> |
| 2 | 2 | ||
| 3 | Constrain window box and body sizes (Bug#16649). | 3 | Constrain window box/body sizes and margin widths (Bug#16649). |
| 4 | * xdisp.c (window_box_width): Don't return less than zero. | 4 | * xdisp.c (window_box_width): Don't return less than zero. |
| 5 | (window_box_left_offset, window_box_right_offset): Don't return | 5 | (window_box_left_offset, window_box_right_offset): Don't return |
| 6 | more than the window's pixel width. | 6 | more than the window's pixel width. |
| 7 | * window.c (window_body_height, window_body_width): Don't return | 7 | * window.c (window_body_height, window_body_width): Don't return |
| 8 | negative value. | 8 | negative value. |
| 9 | (window_resize_apply): Adjust margin width, if necessary. | ||
| 9 | 10 | ||
| 10 | 2014-02-07 Glenn Morris <rgm@gnu.org> | 11 | 2014-02-07 Glenn Morris <rgm@gnu.org> |
| 11 | 12 | ||
diff --git a/src/window.c b/src/window.c index adde3919699..b2c97d52157 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3923,8 +3923,11 @@ window_resize_apply (struct window *w, bool horflag) | |||
| 3923 | } | 3923 | } |
| 3924 | } | 3924 | } |
| 3925 | else | 3925 | else |
| 3926 | /* Bug#15957. */ | 3926 | { |
| 3927 | w->window_end_valid = 0; | 3927 | adjust_window_margins (w); |
| 3928 | /* Bug#15957. */ | ||
| 3929 | w->window_end_valid = 0; | ||
| 3930 | } | ||
| 3928 | } | 3931 | } |
| 3929 | 3932 | ||
| 3930 | 3933 | ||