From: Eli Zaretskii Date: Wed, 27 Jul 2022 17:10:46 +0000 (+0300) Subject: ; Fix typos in comments and remove debug code. X-Git-Tag: emacs-29.0.90~1447^2~675^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4313c695cd6370667ccf086cef0d9201fdf796ca;p=emacs.git ; Fix typos in comments and remove debug code. --- 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);