aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c
index b4f3c349dc5..95228b26825 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2506,6 +2506,9 @@ buffer, whether or not it is currently displayed in some window. */)
2506 an addition to the hscroll amount. */ 2506 an addition to the hscroll amount. */
2507 if (!NILP (lcols)) 2507 if (!NILP (lcols))
2508 { 2508 {
2509 if (it.method == GET_FROM_STRING && !NILP (it.from_overlay))
2510 reseat_at_previous_visible_line_start(&it);
2511
2509 move_it_in_display_line (&it, ZV, first_x + to_x, MOVE_TO_X); 2512 move_it_in_display_line (&it, ZV, first_x + to_x, MOVE_TO_X);
2510 /* If we find ourselves in the middle of an overlay string 2513 /* If we find ourselves in the middle of an overlay string
2511 which includes a newline after current string position, 2514 which includes a newline after current string position,