Fix vertical cursor motion when there's a display string with newline at EOL.
authorEli Zaretskii <eliz@gnu.org>
Wed, 8 May 2013 17:59:38 +0000 (20:59 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 8 May 2013 17:59:38 +0000 (20:59 +0300)
commit07525f7737602af36afe40f85f229fee9887f232
tree4a3141cdbf5b0727e4abd0b33d121edb10cb348a
parent1d5963cc63979c4a19b5de3b9b537c1b3b61dda3
Fix vertical cursor motion when there's a display string with newline at EOL.

 src/xdisp.c (row_for_charpos_p): New function, with code of
 cursor_row_p, but accepts an additional argument CHARPOS instead
 of using a hardcoded PT.
 (cursor_row_p): Call row_for_charpos_p with 2nd argument PT.
 (row_containing_pos): Call row_for_charpos_p instead of partially
 doing the same.  Fixes cursor positioning under longlines-mode
 when longlines-show-effect includes more than one newline, when
 moving the cursor vertically up.
src/ChangeLog
src/xdisp.c