From 4313c695cd6370667ccf086cef0d9201fdf796ca Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 27 Jul 2022 20:10:46 +0300 Subject: [PATCH] ; Fix typos in comments and remove debug code. --- src/xdisp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index db3a780fcff..66b37a855bc 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -7087,11 +7087,10 @@ back_to_previous_line_start (struct it *it) /* Find in the current buffer the first display or overlay string between STARTPOS and ENDPOS that includes embedded newlines. Consider only overlays that apply to window W. - Value is non-zero if such a display/overlay strong is found found. */ + Value is non-zero if such a display/overlay string is found. */ static bool strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) { - int n = 0; /* Process overlays before the overlay center. */ for (struct Lisp_Overlay *ov = current_buffer->overlays_before; ov; ov = ov->next) @@ -7099,7 +7098,6 @@ strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) Lisp_Object overlay = make_lisp_ptr (ov, Lisp_Vectorlike); eassert (OVERLAYP (overlay)); - n++; /* Skip this overlay if it doesn't apply to our window. */ Lisp_Object window = Foverlay_get (overlay, Qwindow); if (WINDOWP (window) && XWINDOW (window) != w) @@ -7137,7 +7135,6 @@ strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) { Lisp_Object overlay = make_lisp_ptr (ov, Lisp_Vectorlike); eassert (OVERLAYP (overlay)); - n++; /* Skip this overlay if it doesn't apply to our window. */ Lisp_Object window = Foverlay_get (overlay, Qwindow); -- 2.39.5