diff options
| author | Richard M. Stallman | 1998-05-03 04:33:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-03 04:33:27 +0000 |
| commit | e8cb089b3938c8dd784c54945099555f1761e28a (patch) | |
| tree | e4ab40a3802517d2b08f6e010c5eb740c54e99f0 /src | |
| parent | 9e400f6dfbd96f08cdfb66e531a1b0e663a91b01 (diff) | |
| download | emacs-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.c | 5 |
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 | { |