aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-03 04:33:27 +0000
committerRichard M. Stallman1998-05-03 04:33:27 +0000
commite8cb089b3938c8dd784c54945099555f1761e28a (patch)
treee4ab40a3802517d2b08f6e010c5eb740c54e99f0 /src
parent9e400f6dfbd96f08cdfb66e531a1b0e663a91b01 (diff)
downloademacs-e8cb089b3938c8dd784c54945099555f1761e28a.tar.gz
emacs-e8cb089b3938c8dd784c54945099555f1761e28a.zip
(compute_motion): When invisible text cross TO,
return TO, not the start of the invisible text.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 4d4f4b4b0ca..639cfdae818 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1121,7 +1121,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
1121 newpos = skip_invisible (pos, &next_boundary, to, window); 1121 newpos = skip_invisible (pos, &next_boundary, to, window);
1122 1122
1123 if (newpos >= to) 1123 if (newpos >= to)
1124 goto after_loop; 1124 {
1125 pos = min (to, newpos);
1126 goto after_loop;
1127 }
1125 1128
1126 if (newpos != pos_here) 1129 if (newpos != pos_here)
1127 { 1130 {