aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2011-08-23 13:27:27 +0200
committerJoakim Verona2011-08-23 13:27:27 +0200
commit41621cb417f625d43e832736d57bd1ca303fa2e6 (patch)
treeb899bf031d192be8f8452f5c93a46977d612aaa7 /src
parent91a91767a52dccd75bfb3fee1f4e2c75c5e475f9 (diff)
parent8ddde6516c5bd15ea8af79800779a28c8742c488 (diff)
downloademacs-41621cb417f625d43e832736d57bd1ca303fa2e6.tar.gz
emacs-41621cb417f625d43e832736d57bd1ca303fa2e6.zip
upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xdisp.c3
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 @@
12011-08-23 Eli Zaretskii <eliz@gnu.org> 12011-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))