Mercurial > emacs
comparison src/xdisp.c @ 25729:7b888fb10913
(resize_mini_window): Don't report changed window
height if it actually hasn't changed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 15 Sep 1999 12:58:44 +0000 |
parents | 790503d553e1 |
children | e26ea124e009 |
comparison
equal
deleted
inserted
replaced
25728:342027dc53c2 | 25729:7b888fb10913 |
---|---|
5505 if (height > XFASTINT (w->height) | 5505 if (height > XFASTINT (w->height) |
5506 || exact_p | 5506 || exact_p |
5507 || BEGV == ZV) | 5507 || BEGV == ZV) |
5508 { | 5508 { |
5509 Lisp_Object old_selected_window; | 5509 Lisp_Object old_selected_window; |
5510 int old_height = XFASTINT (w->height); | |
5510 | 5511 |
5511 freeze_window_starts (f, height > XFASTINT (w->height)); | 5512 freeze_window_starts (f, height > XFASTINT (w->height)); |
5512 old_selected_window = selected_window; | 5513 old_selected_window = selected_window; |
5513 XSETWINDOW (selected_window, w); | 5514 XSETWINDOW (selected_window, w); |
5514 change_window_height (height - XFASTINT (w->height), 0); | 5515 change_window_height (height - XFASTINT (w->height), 0); |
5515 selected_window = old_selected_window; | 5516 selected_window = old_selected_window; |
5516 window_height_changed_p = 1; | 5517 window_height_changed_p = XFASTINT (w->height) != old_height; |
5517 } | 5518 } |
5518 } | 5519 } |
5519 | 5520 |
5520 return window_height_changed_p; | 5521 return window_height_changed_p; |
5521 } | 5522 } |