Commit 14a65ffe authored by Richard M. Stallman's avatar Richard M. Stallman

(WINDOW_RIGHT_MARGIN): Deduct width of vertical line

if frame has no scroll bars.
parent 06f57aa7
......@@ -207,11 +207,13 @@ struct window
/* Return the frame column before which the text in window W ends.
This is different from WINDOW_RIGHT_EDGE because it does not include
a right-hand scroll bar if any. */
a scroll bar or window-separating line on the right edge. */
#define WINDOW_RIGHT_MARGIN(W) \
(WINDOW_RIGHT_EDGE (W) \
- (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (XFRAME (WINDOW_FRAME (W))) \
- (! FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (WINDOW_FRAME (W))) \
? 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