aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dispnew.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 38c452f354e..edfecaa0930 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-10-08 Eli Zaretskii <eliz@gnu.org>
2
3 * dispnew.c (buffer_posn_from_coords): Account for a possible
4 presence of header-line. (Bug#4426)
5
12011-10-07 Stefan Monnier <monnier@iro.umontreal.ca> 62011-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't 8 * buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't
diff --git a/src/dispnew.c b/src/dispnew.c
index 51b17fc0f11..46d1917b144 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5261,6 +5261,10 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p
5261 CHARPOS (startp) = min (ZV, max (BEGV, CHARPOS (startp))); 5261 CHARPOS (startp) = min (ZV, max (BEGV, CHARPOS (startp)));
5262 BYTEPOS (startp) = min (ZV_BYTE, max (BEGV_BYTE, BYTEPOS (startp))); 5262 BYTEPOS (startp) = min (ZV_BYTE, max (BEGV_BYTE, BYTEPOS (startp)));
5263 start_display (&it, w, startp); 5263 start_display (&it, w, startp);
5264 /* start_display takes into account the header-line row, but IT's
5265 vpos still counts from the glyph row that includes the window's
5266 start position. Adjust for a possible header-line row. */
5267 it.vpos += WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0;
5264 5268
5265 x0 = *x; 5269 x0 = *x;
5266 5270