diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c index 4c6dacd2042..d76ac028d5b 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2229,10 +2229,10 @@ whether or not it is currently displayed in some window. */) | |||
| 2229 | screen lines we need to backtrack. */ | 2229 | screen lines we need to backtrack. */ |
| 2230 | it_overshoot_count = it.vpos; | 2230 | it_overshoot_count = it.vpos; |
| 2231 | } | 2231 | } |
| 2232 | /* We will overshoot if lines are truncated and point lies | 2232 | /* We might overshoot if lines are truncated and point lies |
| 2233 | beyond the right margin of the window. */ | 2233 | beyond the right margin of the window. */ |
| 2234 | if (it.line_wrap == TRUNCATE && it.current_x >= it.last_visible_x | 2234 | if (it.line_wrap == TRUNCATE && it.current_x >= it.last_visible_x |
| 2235 | && it_overshoot_count == 0) | 2235 | && it_overshoot_count == 0 && it.vpos > 0) |
| 2236 | it_overshoot_count = 1; | 2236 | it_overshoot_count = 1; |
| 2237 | if (it_overshoot_count > 0) | 2237 | if (it_overshoot_count > 0) |
| 2238 | move_it_by_lines (&it, -it_overshoot_count); | 2238 | move_it_by_lines (&it, -it_overshoot_count); |