aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index bc1aa8ca2c6..1d5d346e63f 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2286,7 +2286,7 @@ whether or not it is currently displayed in some window. */)
2286 it.current_y = 0; 2286 it.current_y = 0;
2287 /* Do this even if LINES is 0, so that we move back to the 2287 /* Do this even if LINES is 0, so that we move back to the
2288 beginning of the current line as we ought. */ 2288 beginning of the current line as we ought. */
2289 if ((nlines < 0 && IT_CHARPOS (it) > 0) 2289 if ((nlines < 0 && IT_CHARPOS (it) > BEGV)
2290 || (nlines == 0 && !(start_x_given && start_x <= to_x))) 2290 || (nlines == 0 && !(start_x_given && start_x <= to_x)))
2291 move_it_by_lines (&it, max (PTRDIFF_MIN, nlines)); 2291 move_it_by_lines (&it, max (PTRDIFF_MIN, nlines));
2292 } 2292 }
@@ -2338,7 +2338,7 @@ whether or not it is currently displayed in some window. */)
2338 and then reposition point at the requested X coordinate; 2338 and then reposition point at the requested X coordinate;
2339 if we don't, the cursor will be placed just after the 2339 if we don't, the cursor will be placed just after the
2340 string, which might not be the requested column. */ 2340 string, which might not be the requested column. */
2341 if (nlines > 0 && it.area == TEXT_AREA) 2341 if (nlines >= 0 && it.area == TEXT_AREA)
2342 { 2342 {
2343 while (it.method == GET_FROM_STRING 2343 while (it.method == GET_FROM_STRING
2344 && !it.string_from_display_prop_p 2344 && !it.string_from_display_prop_p