Fix the row number mistakenly reported by pos_visible_p in rare cases.
commit1acb1beff16b4df3512f0fe59850ed4541d038c3
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:04:35 +0000 (9 18:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:04:35 +0000 (9 18:04 +0300)
tree043517952a10b7f5eaf61f1d038f4a444b87d917
parentda604136b92764f159442496a9b18cb48204787e
Fix the row number mistakenly reported by pos_visible_p in rare cases.

 src/xdisp.c (pos_visible_p): Properly save and restore the iterator
 state around the call to line_bottom, since it can move the
 iterator to another screen line.  This fixes off-by-one errors in
 the reported row in some rare cases.
src/ChangeLog
src/xdisp.c