diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 6ca70c744f4..047f9e82262 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1260,7 +1260,8 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 1260 | if (vpos > tovpos || vpos == tovpos && hpos >= tohpos) | 1260 | if (vpos > tovpos || vpos == tovpos && hpos >= tohpos) |
| 1261 | { | 1261 | { |
| 1262 | if (contin_hpos && prev_hpos == 0 | 1262 | if (contin_hpos && prev_hpos == 0 |
| 1263 | && wide_column_end_hpos > width) | 1263 | && hpos > tohpos |
| 1264 | && (contin_hpos == width || wide_column_end_hpos > width)) | ||
| 1264 | { /* Line breaks because we can't put the character at the | 1265 | { /* Line breaks because we can't put the character at the |
| 1265 | previous line any more. It is not the multi-column | 1266 | previous line any more. It is not the multi-column |
| 1266 | character continued in middle. Go back to previous | 1267 | character continued in middle. Go back to previous |