]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_vertical_border): If left fringe is not present
authorJuri Linkov <juri@jurta.org>
Thu, 30 Jun 2005 14:56:02 +0000 (14:56 +0000)
committerJuri Linkov <juri@jurta.org>
Thu, 30 Jun 2005 14:56:02 +0000 (14:56 +0000)
decrease x coord of vertical border by 1 pixel to not occupy text
area of the right window.

src/xdisp.c

index 51ce35fedd7b21bb076bcb2646944f1d686db48b..40e83c7d37c4248a937558187ea4183809957056 100644 (file)
@@ -22400,6 +22400,9 @@ x_draw_vertical_border (w)
       window_box_edges (w, -1, &x0, &y0, &x1, &y1);
       y1 -= 1;
 
+      if (WINDOW_LEFT_FRINGE_WIDTH (w) == 0)
+       x1 -= 1;
+
       rif->draw_vertical_window_border (w, x1, y0, y1);
     }
   else if (!WINDOW_LEFTMOST_P (w)
@@ -22410,6 +22413,9 @@ x_draw_vertical_border (w)
       window_box_edges (w, -1, &x0, &y0, &x1, &y1);
       y1 -= 1;
 
+      if (WINDOW_LEFT_FRINGE_WIDTH (w) == 0)
+       x0 -= 1;
+
       rif->draw_vertical_window_border (w, x0, y0, y1);
     }
 }