aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-08-14 14:10:19 +0300
committerEli Zaretskii2011-08-14 14:10:19 +0300
commitdaf17d00fb0ed36ed98edd3f9eec9def0ac59f1c (patch)
treea01e788eaf7c695d6ad8465ac9d1db153fe20093 /src
parent08e3161a51ae1547c486d6603059711370d11118 (diff)
downloademacs-daf17d00fb0ed36ed98edd3f9eec9def0ac59f1c.tar.gz
emacs-daf17d00fb0ed36ed98edd3f9eec9def0ac59f1c.zip
Fix bug #9296 with vertical cursor motion on images.
src/xdisp.c (move_it_in_display_line_to): Don't invoke IT_RESET_X_ASCENT_DESCENT when iterator position was restored from ppos_it. Fixes vertical cursor motion when line beginning is covered by an image.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xdisp.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b0a0e03a8a7..b5da1be5c7d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12011-08-14 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (move_it_in_display_line_to): Don't invoke
4 IT_RESET_X_ASCENT_DESCENT when iterator position was restored from
5 ppos_it. Fixes vertical cursor motion when line beginning is
6 covered by an image. (Bug#9296)
7
12011-08-14 Jan Djärv <jan.h.d@swipnet.se> 82011-08-14 Jan Djärv <jan.h.d@swipnet.se>
2 9
3 * nsterm.h (ns_run_ascript): Declare. 10 * nsterm.h (ns_run_ascript): Declare.
diff --git a/src/xdisp.c b/src/xdisp.c
index a3bdcbdf4c6..ff3f55bef25 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -8037,8 +8037,12 @@ move_it_in_display_line_to (struct it *it,
8037 if (!saw_smaller_pos && IT_CHARPOS (*it) > to_charpos) 8037 if (!saw_smaller_pos && IT_CHARPOS (*it) > to_charpos)
8038 { 8038 {
8039 if (IT_CHARPOS (ppos_it) < ZV) 8039 if (IT_CHARPOS (ppos_it) < ZV)
8040 RESTORE_IT (it, &ppos_it, ppos_data); 8040 {
8041 goto buffer_pos_reached; 8041 RESTORE_IT (it, &ppos_it, ppos_data);
8042 result = MOVE_POS_MATCH_OR_ZV;
8043 }
8044 else
8045 goto buffer_pos_reached;
8042 } 8046 }
8043 else if (it->line_wrap == WORD_WRAP && atpos_it.sp >= 0 8047 else if (it->line_wrap == WORD_WRAP && atpos_it.sp >= 0
8044 && IT_CHARPOS (*it) > to_charpos) 8048 && IT_CHARPOS (*it) > to_charpos)