diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-01-21 21:43:58 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-01-21 21:43:58 +0000 |
commit | c129b504663be6ef0d43156d4ae6162a600bbd1d (patch) | |
tree | 437e3492723294152d46c23c7e161213b872dbca /src | |
parent | d95e5ab63414da8f8da281fbc611bcaeca1504af (diff) | |
download | emacs-c129b504663be6ef0d43156d4ae6162a600bbd1d.tar.gz |
(WINDOW_RIGHT_MARGIN): Deduct width of vertical line
if frame has no scroll bars.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/window.h b/src/window.h index c04d654639b..6827449649a 100644 --- a/src/window.h +++ b/src/window.h @@ -207,13 +207,15 @@ 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. */ - -#define WINDOW_RIGHT_MARGIN(W) \ - (WINDOW_RIGHT_EDGE (W) \ - - (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (XFRAME (WINDOW_FRAME (W))) \ - ? FRAME_SCROLL_BAR_COLS (XFRAME (WINDOW_FRAME (W))) \ - : 0)) + 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 (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)) /* 1 if window W takes up the full width of its frame. */ |