diff options
| author | Eli Zaretskii | 2022-07-27 20:10:46 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-07-27 20:10:46 +0300 |
| commit | 4313c695cd6370667ccf086cef0d9201fdf796ca (patch) | |
| tree | 5e6b02fe2de802a0d2b294222f7f3cad94239dac /src | |
| parent | a25cd7f68aa5babb7cc9002d89ff02077937927b (diff) | |
| download | emacs-4313c695cd6370667ccf086cef0d9201fdf796ca.tar.gz emacs-4313c695cd6370667ccf086cef0d9201fdf796ca.zip | |
; Fix typos in comments and remove debug code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 1 insertions, 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) | |||
| 7087 | /* Find in the current buffer the first display or overlay string | 7087 | /* Find in the current buffer the first display or overlay string |
| 7088 | between STARTPOS and ENDPOS that includes embedded newlines. | 7088 | between STARTPOS and ENDPOS that includes embedded newlines. |
| 7089 | Consider only overlays that apply to window W. | 7089 | Consider only overlays that apply to window W. |
| 7090 | Value is non-zero if such a display/overlay strong is found found. */ | 7090 | Value is non-zero if such a display/overlay string is found. */ |
| 7091 | static bool | 7091 | static bool |
| 7092 | strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) | 7092 | strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) |
| 7093 | { | 7093 | { |
| 7094 | int n = 0; | ||
| 7095 | /* Process overlays before the overlay center. */ | 7094 | /* Process overlays before the overlay center. */ |
| 7096 | for (struct Lisp_Overlay *ov = current_buffer->overlays_before; | 7095 | for (struct Lisp_Overlay *ov = current_buffer->overlays_before; |
| 7097 | ov; ov = ov->next) | 7096 | ov; ov = ov->next) |
| @@ -7099,7 +7098,6 @@ strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) | |||
| 7099 | Lisp_Object overlay = make_lisp_ptr (ov, Lisp_Vectorlike); | 7098 | Lisp_Object overlay = make_lisp_ptr (ov, Lisp_Vectorlike); |
| 7100 | eassert (OVERLAYP (overlay)); | 7099 | eassert (OVERLAYP (overlay)); |
| 7101 | 7100 | ||
| 7102 | n++; | ||
| 7103 | /* Skip this overlay if it doesn't apply to our window. */ | 7101 | /* Skip this overlay if it doesn't apply to our window. */ |
| 7104 | Lisp_Object window = Foverlay_get (overlay, Qwindow); | 7102 | Lisp_Object window = Foverlay_get (overlay, Qwindow); |
| 7105 | if (WINDOWP (window) && XWINDOW (window) != w) | 7103 | if (WINDOWP (window) && XWINDOW (window) != w) |
| @@ -7137,7 +7135,6 @@ strings_with_newlines (ptrdiff_t startpos, ptrdiff_t endpos, struct window *w) | |||
| 7137 | { | 7135 | { |
| 7138 | Lisp_Object overlay = make_lisp_ptr (ov, Lisp_Vectorlike); | 7136 | Lisp_Object overlay = make_lisp_ptr (ov, Lisp_Vectorlike); |
| 7139 | eassert (OVERLAYP (overlay)); | 7137 | eassert (OVERLAYP (overlay)); |
| 7140 | n++; | ||
| 7141 | 7138 | ||
| 7142 | /* Skip this overlay if it doesn't apply to our window. */ | 7139 | /* Skip this overlay if it doesn't apply to our window. */ |
| 7143 | Lisp_Object window = Foverlay_get (overlay, Qwindow); | 7140 | Lisp_Object window = Foverlay_get (overlay, Qwindow); |