]> git.eshelyaron.com Git - emacs.git/commitdiff
(WINDOW_RIGHT_MARGIN): Don't subtract 1 from width when there are no
authorRichard M. Stallman <rms@gnu.org>
Mon, 4 May 1998 20:14:36 +0000 (20:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 4 May 1998 20:14:36 +0000 (20:14 +0000)
vertical scrollbars and this is the rightmost window in the frame.

src/window.h

index 29e2565c0c80b8a9216be97a8577cdefce1b1791..1a6c02a309c9482a9e1c7ae75ad35079f7a30559 100644 (file)
@@ -212,7 +212,7 @@ struct window
 #define WINDOW_RIGHT_MARGIN(W)                                             \
   (WINDOW_RIGHT_EDGE (W)                                                   \
    - (! FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (WINDOW_FRAME (W)))         \
-      ? 1                                                                  \
+      ? ((WINDOW_RIGHTMOST_P (W)) ? 0 : 1)                                 \
       : FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (XFRAME (WINDOW_FRAME (W))) \
       ? FRAME_SCROLL_BAR_COLS (XFRAME (WINDOW_FRAME (W)))                  \
       : 0))