aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-09-17 20:29:04 +0000
committerChong Yidong2008-09-17 20:29:04 +0000
commit2421af7e64f793a3cd8545dde64de6c2f84a51d3 (patch)
tree1138204a15b520298f561dedcff508ceb096539f /src
parent3bd4d0e1b664ba03e37c8ee1da2a3969c2cc9df2 (diff)
downloademacs-2421af7e64f793a3cd8545dde64de6c2f84a51d3.tar.gz
emacs-2421af7e64f793a3cd8545dde64de6c2f84a51d3.zip
(Fvertical_motion): Use position reported by iterator
instead of PT for determining screen motion (bug#943).
Diffstat (limited to 'src')
-rw-r--r--src/indent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index edb445c296f..ba4787aa1c5 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2109,7 +2109,7 @@ whether or not it is currently displayed in some window. */)
2109 } 2109 }
2110 else 2110 else
2111 { 2111 {
2112 if (IT_CHARPOS (it) > PT) 2112 if (IT_CHARPOS (it) > it_start)
2113 { 2113 {
2114 /* IT may move too far if truncate-lines is on and PT 2114 /* IT may move too far if truncate-lines is on and PT
2115 lies beyond the right margin. In that case, 2115 lies beyond the right margin. In that case,
@@ -2135,7 +2135,7 @@ whether or not it is currently displayed in some window. */)
2135 from the last line that it occupies. */ 2135 from the last line that it occupies. */
2136 if (PT < ZV) 2136 if (PT < ZV)
2137 { 2137 {
2138 while (IT_CHARPOS (it) <= PT) 2138 while (IT_CHARPOS (it) <= it_start)
2139 { 2139 {
2140 it.vpos = 0; 2140 it.vpos = 0;
2141 move_it_by_lines (&it, 1, 0); 2141 move_it_by_lines (&it, 1, 0);