aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-10-26 17:42:08 +0200
committerEli Zaretskii2014-10-26 17:42:08 +0200
commit475e766a94eddad2419474aa9c4c38ff278af2f7 (patch)
tree3c41e8a6235f690ed1d6762882cb56217da339b5 /src
parent73fd041d910f737746b952f2845fbf419f6ab0d3 (diff)
downloademacs-475e766a94eddad2419474aa9c4c38ff278af2f7.tar.gz
emacs-475e766a94eddad2419474aa9c4c38ff278af2f7.zip
Fix bug #18839 with incorrect image size returned by posn-at-point.
src/dispnew.c (buffer_posn_from_coords): Use WINDOW_WANTS_HEADER_LINE_P, not WINDOW_WANTS_MODELINE_P, to account for the header-line height.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/dispnew.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 28af5026928..da3e4d682d5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12014-10-26 Eli Zaretskii <eliz@gnu.org>
2
3 * dispnew.c (buffer_posn_from_coords): Use
4 WINDOW_WANTS_HEADER_LINE_P, not WINDOW_WANTS_MODELINE_P, to
5 account for the header-line height. (Bug#18839)
6
12014-10-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 72014-10-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 8
3 * xdisp.c (draw_glyphs): Set clipping to highlight boundaries. 9 * xdisp.c (draw_glyphs): Set clipping to highlight boundaries.
diff --git a/src/dispnew.c b/src/dispnew.c
index 71345775045..ffd51e08e98 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5191,7 +5191,7 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p
5191 start position, i.e. it excludes the header-line row, but 5191 start position, i.e. it excludes the header-line row, but
5192 MATRIX_ROW includes the header-line row. Adjust for a possible 5192 MATRIX_ROW includes the header-line row. Adjust for a possible
5193 header-line row. */ 5193 header-line row. */
5194 it_vpos = it.vpos + WINDOW_WANTS_MODELINE_P (w); 5194 it_vpos = it.vpos + WINDOW_WANTS_HEADER_LINE_P (w);
5195 if (it_vpos < w->current_matrix->nrows 5195 if (it_vpos < w->current_matrix->nrows
5196 && (row = MATRIX_ROW (w->current_matrix, it_vpos), 5196 && (row = MATRIX_ROW (w->current_matrix, it_vpos),
5197 row->enabled_p)) 5197 row->enabled_p))