Fix vertical cursor motion when the newline is covered by a display string.
commite3cbd34b8793d52fb3252c8e0406bc5d67c2db44
authorEli Zaretskii <eliz@gnu.org>
Sat, 24 Sep 2011 13:23:58 +0000 (24 16:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Sep 2011 13:23:58 +0000 (24 16:23 +0300)
treeabe74fe6623c25dea8c65abb05806b05baaf76b5
parentfac7ae53a7832a967e351c6dbfa5552bb313d4bc
Fix vertical cursor motion when the newline is covered by a display string.

 src/indent.c (Fvertical_motion): Compute and apply the overshoot
 logic when moving up, not only when moving down.  Fix the
 confusing name and values of the it_overshoot_expected variable;
 logic changes accordingly.  (Bug#9254) (Bug#9549)
 src/xdisp.c (pos_visible_p): Produce correct pixel coordinates when
 CHARPOS is covered by a display string which includes newlines.
 (move_it_vertically_backward): Avoid inflooping when START_CHARPOS
 is covered by a display string with embedded newlines.
src/ChangeLog
src/indent.c
src/xdisp.c