From a27062f04ec1f8f7cba2a19df433a684324805e9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 18 Jul 1997 17:46:56 +0000 Subject: [PATCH] (display_string): Ignore W->left if OBEY_WINDOW_WIDTH is zero. --- src/xdisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, if (tab_width <= 0 || tab_width > 1000) tab_width = 8; p1 = p1start; - start = desired_glyphs->glyphs[vpos] + XFASTINT (w->left); + start = desired_glyphs->glyphs[vpos]; if (obey_window_width) { + start += XFASTINT (w->left); end = start + window_width - (truncate != 0); if (!WINDOW_RIGHTMOST_P (w)) -- 2.39.5