Fix bug #18384 with incorrect reporting of row number by posn-col-row.
commit5735a30d59af16ba004a151b6e0a4c18ba1d481e
authorEli Zaretskii <eliz@gnu.org>
Tue, 2 Sep 2014 15:16:42 +0000 (2 18:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 Sep 2014 15:16:42 +0000 (2 18:16 +0300)
treec67e14bbc54df245f8109485677589362031844d
parent5597a7d4e2a69b6777c023e0eae888b7ffd7d566
Fix bug #18384 with incorrect reporting of row number by posn-col-row.

 lisp/subr.el (posn-col-row): Revert the change from commit
 2010-11-13T21:07:58Z!eliz@gnu.org, which
 was inadvertently merged from emacs-23 release branch in
2010-11-18T03:54:14Z!monnier@iro.umontreal.ca, and
 introduced an off-by-one error in the reported row when there is a
 header line.

 src/dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
 the reported row in the case of a window with a header line, by
 improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
 eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.
lisp/ChangeLog
lisp/subr.el
src/ChangeLog
src/dispnew.c