1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-22 14:01:47 -07:00

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

vertical scrollbars and this is the rightmost window in the frame.
This commit is contained in:
Richard M. Stallman 1998-05-04 20:14:36 +00:00
parent 07e464ab32
commit 490fe8b05c

View 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))