From 490fe8b05c2530a4bfa512d6e7e5a68e742a2fcd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 4 May 1998 20:14:36 +0000 Subject: [PATCH] (WINDOW_RIGHT_MARGIN): Don't subtract 1 from width when there are no vertical scrollbars and this is the rightmost window in the frame. --- src/window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.h b/src/window.h index 29e2565c0c8..1a6c02a309c 100644 --- a/src/window.h +++ b/src/window.h @@ -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)) -- 2.39.5