Fix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'
commitdf4f8125342bafe1d70130f84acfa67cc0c4a7f4
authorEli Zaretskii <eliz@gnu.org>
Sat, 21 May 2016 09:35:08 +0000 (21 12:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 23 Sep 2016 13:59:17 +0000 (23 16:59 +0300)
tree6f2fa9895170462543b5c9d019ddb9e99b1f4b2d
parent9135bd7af7bdf9f805b185a77fe4e6d33dec4009
Fix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'

* src/xdisp.c (move_it_in_display_line_to): Don't assume we can
wrap on a whitespace character if it's followed by another
whitespace character.  When returning under WORD_WRAP for a screen
line that is continued, restore to wrap point when atpos/atx
position would be displayed on the next screen line due to
line-wrap.  (Bug#23570)

This is backported from master
(cherry picked from commit 99848b37d2c3e14c0af45fc6da437a806aa58a80)
src/xdisp.c