aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-18 17:46:56 +0000
committerRichard M. Stallman1997-07-18 17:46:56 +0000
commita27062f04ec1f8f7cba2a19df433a684324805e9 (patch)
tree66d7ad3ddcdbb0b399518250e2367e6bd47f051d /src
parentd5859f32d974ee27b859759d9a885b679048d06d (diff)
downloademacs-a27062f04ec1f8f7cba2a19df433a684324805e9.tar.gz
emacs-a27062f04ec1f8f7cba2a19df433a684324805e9.zip
(display_string): Ignore W->left if OBEY_WINDOW_WIDTH is zero.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 7790109de86..d5a867d22b3 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4675,10 +4675,11 @@ display_string (w, vpos, string, length, hpos, truncate,
4675 if (tab_width <= 0 || tab_width > 1000) tab_width = 8; 4675 if (tab_width <= 0 || tab_width > 1000) tab_width = 8;
4676 4676
4677 p1 = p1start; 4677 p1 = p1start;
4678 start = desired_glyphs->glyphs[vpos] + XFASTINT (w->left); 4678 start = desired_glyphs->glyphs[vpos];
4679 4679
4680 if (obey_window_width) 4680 if (obey_window_width)
4681 { 4681 {
4682 start += XFASTINT (w->left);
4682 end = start + window_width - (truncate != 0); 4683 end = start + window_width - (truncate != 0);
4683 4684
4684 if (!WINDOW_RIGHTMOST_P (w)) 4685 if (!WINDOW_RIGHTMOST_P (w))