diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index fa1dc0a2932..8f29b9cc24f 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1225,7 +1225,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 1225 | /* Stop if past the target buffer position or screen position. */ | 1225 | /* Stop if past the target buffer position or screen position. */ |
| 1226 | if (pos > to | 1226 | if (pos > to |
| 1227 | || vpos > tovpos | 1227 | || vpos > tovpos |
| 1228 | || vpos == tovpos && hpos > tohpos) | 1228 | || vpos == tovpos && tohpos >= 0 && hpos > tohpos) |
| 1229 | { | 1229 | { |
| 1230 | /* Go back to the previous position. */ | 1230 | /* Go back to the previous position. */ |
| 1231 | pos = prev_pos; | 1231 | pos = prev_pos; |