]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_after_update_window_line): Don't run the code
authorGerd Moellmann <gerd@gnu.org>
Tue, 30 Oct 2001 17:29:25 +0000 (17:29 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 30 Oct 2001 17:29:25 +0000 (17:29 +0000)
clearing in borders for rows whose visible height is 0.

src/ChangeLog
src/xterm.c

index abb90863742f6faeba9beb1362c5305a35aa14d2..29b79aa0807fafd4e0c44ad76c60ff30e203e503 100644 (file)
@@ -1,5 +1,8 @@
 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
 
+       * xterm.c (x_after_update_window_line): Don't run the code
+       clearing in borders for rows whose visible height is 0.
+
        * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
        resized_p flag is set.  If not set, use the much less flickering
        method previously used.
index 8823c8ff58fbafb4319c41627ce056d1ef6c6777..840a7ab9e43f372f9f730be25070f9779ee41dd8 100644 (file)
@@ -773,7 +773,7 @@ x_after_update_window_line (desired_row)
 {
   struct window *w = updated_window;
   struct frame *f;
-  int width;
+  int width, height;
   
   xassert (w);
   
@@ -794,9 +794,10 @@ x_after_update_window_line (desired_row)
       && desired_row->full_width_p
       && (f = XFRAME (w->frame),
          width = FRAME_INTERNAL_BORDER_WIDTH (f),
-         width != 0))
+         width != 0)
+      && (height = desired_row->visible_height,
+         height > 0))
     {
-      int height = desired_row->visible_height;
       int y = WINDOW_TO_FRAME_PIXEL_Y (w, max (0, desired_row->y));
 
       /* Internal border is drawn below the tool bar.  */