diff options
| author | Eli Zaretskii | 2019-06-29 12:48:15 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-06-29 12:48:15 +0300 |
| commit | ca20315501e780263d5544b347d064210daf6db2 (patch) | |
| tree | f1a852ee26118e109eccb93cd56eb5c900d2d91e /src | |
| parent | f1d414b98f2df3d31abfa710ecbbc0223f73aed1 (diff) | |
| download | emacs-ca20315501e780263d5544b347d064210daf6db2.tar.gz emacs-ca20315501e780263d5544b347d064210daf6db2.zip | |
Fix display of fringe bitmaps for tooltips in echo area
* src/xdisp.c (display_line): Force redrawing of fringe
bitmaps when redisplaying a minibuffer window with
truncate-lines set to a non-nil value. (Bug#36308)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 9f63ef4b180..48b0edaa76b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -22528,6 +22528,15 @@ display_line (struct it *it, int cursor_vpos) | |||
| 22528 | it->right_user_fringe_bitmap = 0; | 22528 | it->right_user_fringe_bitmap = 0; |
| 22529 | it->right_user_fringe_face_id = 0; | 22529 | it->right_user_fringe_face_id = 0; |
| 22530 | 22530 | ||
| 22531 | /* When they turn off tooltip-mode on a GUI frame, we call 'message' | ||
| 22532 | with message-truncate-lines bound to non-nil, which produces | ||
| 22533 | truncation bitmaps on the fringe. Force redrawing of the fringes | ||
| 22534 | in that case, to make sure the fringe bitmaps are removed when a | ||
| 22535 | shorter message is displayed. */ | ||
| 22536 | if (MINI_WINDOW_P (it->w) && it->line_wrap == TRUNCATE | ||
| 22537 | && FRAME_WINDOW_P (it->f) && !cursor_in_echo_area) | ||
| 22538 | row->redraw_fringe_bitmaps_p = true; | ||
| 22539 | |||
| 22531 | /* Maybe set the cursor. */ | 22540 | /* Maybe set the cursor. */ |
| 22532 | cvpos = it->w->cursor.vpos; | 22541 | cvpos = it->w->cursor.vpos; |
| 22533 | if ((cvpos < 0 | 22542 | if ((cvpos < 0 |