summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-08-22 00:32:03 +0000
committerKarl Heuer <kwzh@gnu.org>1995-08-22 00:32:03 +0000
commit27b0e53004e46ebd954e7bf5a38f6a521749318d (patch)
treeb62c461d1af6ae9a93243bed77878b944cd21db6 /src
parent5b01c1a40955da52221bfefa261e595a73272b9b (diff)
downloademacs-27b0e53004e46ebd954e7bf5a38f6a521749318d.tar.gz
(display_text_line): Write blanks under the entire
scroll bar, not just the first column.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index bd1bdf5bcdb..7000d8d6089 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3036,11 +3036,16 @@ display_text_line (w, start, vpos, hpos, taboffset)
covered up by the scroll bars, and it's distracting to see
them when the scroll bar windows are flickering around to be
reconfigured. */
- *p1++ = (FRAME_HAS_VERTICAL_SCROLL_BARS (f)
- ? ' '
- : (dp && INTEGERP (DISP_BORDER_GLYPH (dp))
- ? DISP_BORDER_GLYPH (dp)
- : '|'));
+ if (FRAME_HAS_VERTICAL_SCROLL_BARS (f))
+ {
+ int i;
+ for (i = 0; i < FRAME_SCROLL_BAR_COLS (f); i++)
+ *p1++ = SPACEGLYPH;
+ }
+ else
+ *p1++ = (dp && INTEGERP (DISP_BORDER_GLYPH (dp))
+ ? DISP_BORDER_GLYPH (dp)
+ : '|');
}
desired_glyphs->used[vpos] = max (desired_glyphs->used[vpos],
p1 - desired_glyphs->glyphs[vpos]);