summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-05-04 20:14:36 +0000
committerRichard M. Stallman <rms@gnu.org>1998-05-04 20:14:36 +0000
commit490fe8b05c2530a4bfa512d6e7e5a68e742a2fcd (patch)
tree3c9e59d9849b2cb9a4f50331ba0fe7040fb55ff2 /src/window.h
parent07e464ab327ef6847b1947eb2cf80e24a0cf1961 (diff)
downloademacs-490fe8b05c2530a4bfa512d6e7e5a68e742a2fcd.tar.gz
(WINDOW_RIGHT_MARGIN): Don't subtract 1 from width when there are no
vertical scrollbars and this is the rightmost window in the frame.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h2
1 files changed, 1 insertions, 1 deletions
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))