diff options
| author | Po Lu | 2024-04-13 20:07:17 +0800 |
|---|---|---|
| committer | Po Lu | 2024-04-13 20:20:04 +0800 |
| commit | 66c44c3cd7b37712d5a923966f71a06bbf1fcdb8 (patch) | |
| tree | af73351f4570fa19804d910ca6bf45a2bb720d1f /src | |
| parent | 24957ea566bd5d0306c4e99dbb37d88e1f214b50 (diff) | |
| download | emacs-66c44c3cd7b37712d5a923966f71a06bbf1fcdb8.tar.gz emacs-66c44c3cd7b37712d5a923966f71a06bbf1fcdb8.zip | |
; Fix coding style of last change to xdisp.c
* src/xdisp.c (note_fringe_highlight): Stylistic edits.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 2bc943c88cd..452adee1d31 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -35759,21 +35759,22 @@ note_fringe_highlight (Lisp_Object window, int x, int y, | |||
| 35759 | 35759 | ||
| 35760 | /* Get to the first glyph of a text row based on the vertical position | 35760 | /* Get to the first glyph of a text row based on the vertical position |
| 35761 | of the fringe. */ | 35761 | of the fringe. */ |
| 35762 | struct glyph *glyph = MATRIX_ROW_GLYPH_START(w->current_matrix, vpos); | 35762 | struct glyph *glyph = MATRIX_ROW_GLYPH_START (w->current_matrix, vpos); |
| 35763 | int glyph_num = MATRIX_ROW_USED(w->current_matrix, vpos); | 35763 | int glyph_num = MATRIX_ROW_USED (w->current_matrix, vpos); |
| 35764 | 35764 | ||
| 35765 | /* Check all glyphs while looking for fringe tooltips. */ | 35765 | /* Check all glyphs while looking for fringe tooltips. */ |
| 35766 | 35766 | ||
| 35767 | /* NOTE: iterating over glyphs can only find text properties coming | 35767 | /* NOTE: iterating over glyphs can only find text properties coming |
| 35768 | from visible text. This means that zero-length overlays and | 35768 | from visible text. This means that zero-length overlays and |
| 35769 | invisibile text are NOT inspected. */ | 35769 | invisibile text are NOT inspected. */ |
| 35770 | for (;glyph_num; glyph_num--, glyph++) | 35770 | for (; glyph_num; glyph_num--, glyph++) |
| 35771 | { | 35771 | { |
| 35772 | Lisp_Object pos = make_fixnum(glyph->charpos); | 35772 | Lisp_Object pos = make_fixnum (glyph->charpos); |
| 35773 | Lisp_Object help_echo = Qnil; | 35773 | Lisp_Object help_echo = Qnil; |
| 35774 | 35774 | ||
| 35775 | if (STRINGP(glyph->object) || BUFFERP(glyph->object)) | 35775 | if (STRINGP (glyph->object) || BUFFERP (glyph->object)) |
| 35776 | help_echo = get_char_property_and_overlay (pos, sym, glyph->object, NULL); | 35776 | help_echo = get_char_property_and_overlay (pos, sym, |
| 35777 | glyph->object, NULL); | ||
| 35777 | 35778 | ||
| 35778 | if (STRINGP (help_echo)) | 35779 | if (STRINGP (help_echo)) |
| 35779 | { | 35780 | { |