diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d4f654a1028..1b1a8f67e43 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-08-23 Eli Zaretskii <eliz@gnu.org> | 1 | 2011-08-23 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (redisplay_window): When computing centering_position, | ||
| 4 | account for the height of the header line. (Bug#8874) | ||
| 5 | |||
| 3 | * dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos | 6 | * dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos |
| 4 | instead of CHAR_TO_BYTE. Fixes a crash when a completion | 7 | instead of CHAR_TO_BYTE. Fixes a crash when a completion |
| 5 | candidate is selected by the mouse, and that candidate has a | 8 | candidate is selected by the mouse, and that candidate has a |
diff --git a/src/xdisp.c b/src/xdisp.c index 6fbbc69a7ca..f38c2828b8e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15305,7 +15305,8 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15305 | if (pt_offset) | 15305 | if (pt_offset) |
| 15306 | centering_position -= pt_offset; | 15306 | centering_position -= pt_offset; |
| 15307 | centering_position -= | 15307 | centering_position -= |
| 15308 | FRAME_LINE_HEIGHT (f) * (1 + margin + (last_line_misfit != 0)); | 15308 | FRAME_LINE_HEIGHT (f) * (1 + margin + (last_line_misfit != 0)) |
| 15309 | + WINDOW_HEADER_LINE_HEIGHT (w); | ||
| 15309 | /* Don't let point enter the scroll margin near top of | 15310 | /* Don't let point enter the scroll margin near top of |
| 15310 | the window. */ | 15311 | the window. */ |
| 15311 | if (centering_position < margin * FRAME_LINE_HEIGHT (f)) | 15312 | if (centering_position < margin * FRAME_LINE_HEIGHT (f)) |