aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-21 21:43:58 +0000
committerRichard M. Stallman1998-01-21 21:43:58 +0000
commit14a65ffe4289dc2a067b9635cc3a56606383e23a (patch)
tree66d2d9b62447ba44e0a98d0f70e032ee7d05a239 /src
parent06f57aa7fd6d9c56f81c10a42d300dfff6d438bf (diff)
downloademacs-14a65ffe4289dc2a067b9635cc3a56606383e23a.tar.gz
emacs-14a65ffe4289dc2a067b9635cc3a56606383e23a.zip
(WINDOW_RIGHT_MARGIN): Deduct width of vertical line
if frame has no scroll bars.
Diffstat (limited to 'src')
-rw-r--r--src/window.h16
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
207 207
208/* Return the frame column before which the text in window W ends. 208/* Return the frame column before which the text in window W ends.
209 This is different from WINDOW_RIGHT_EDGE because it does not include 209 This is different from WINDOW_RIGHT_EDGE because it does not include
210 a right-hand scroll bar if any. */ 210 a scroll bar or window-separating line on the right edge. */
211 211
212#define WINDOW_RIGHT_MARGIN(W) \ 212#define WINDOW_RIGHT_MARGIN(W) \
213 (WINDOW_RIGHT_EDGE (W) \ 213 (WINDOW_RIGHT_EDGE (W) \
214 - (FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (XFRAME (WINDOW_FRAME (W))) \ 214 - (! FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (WINDOW_FRAME (W))) \
215 ? FRAME_SCROLL_BAR_COLS (XFRAME (WINDOW_FRAME (W))) \ 215 ? 1 \
216 : 0)) 216 : FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT (XFRAME (WINDOW_FRAME (W))) \
217 ? FRAME_SCROLL_BAR_COLS (XFRAME (WINDOW_FRAME (W))) \
218 : 0))
217 219
218/* 1 if window W takes up the full width of its frame. */ 220/* 1 if window W takes up the full width of its frame. */
219 221