diff options
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 | { |