Commit 490fe8b0 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(WINDOW_RIGHT_MARGIN): Don't subtract 1 from width when there are no

vertical scrollbars and this is the rightmost window in the frame.
parent 07e464ab
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment