aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdisp.c')
-rw-r--r--src/xdisp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 58d7ca5cb71..61c798c59e8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -10413,10 +10413,7 @@ include the height of both, if present, in the return value. */)
10413 start = pos; 10413 start = pos;
10414 } 10414 }
10415 else 10415 else
10416 { 10416 start = clip_to_bounds (BEGV, fix_position (from), ZV);
10417 CHECK_FIXNUM_COERCE_MARKER (from);
10418 start = min (max (XFIXNUM (from), BEGV), ZV);
10419 }
10420 10417
10421 if (NILP (to)) 10418 if (NILP (to))
10422 end = ZV; 10419 end = ZV;
@@ -10430,10 +10427,7 @@ include the height of both, if present, in the return value. */)
10430 end = pos; 10427 end = pos;
10431 } 10428 }
10432 else 10429 else
10433 { 10430 end = clip_to_bounds (start, fix_position (to), ZV);
10434 CHECK_FIXNUM_COERCE_MARKER (to);
10435 end = max (start, min (XFIXNUM (to), ZV));
10436 }
10437 10431
10438 if (!NILP (x_limit) && RANGED_FIXNUMP (0, x_limit, INT_MAX)) 10432 if (!NILP (x_limit) && RANGED_FIXNUMP (0, x_limit, INT_MAX))
10439 max_x = XFIXNUM (x_limit); 10433 max_x = XFIXNUM (x_limit);