aboutsummaryrefslogtreecommitdiffstats
path: root/src/fringe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fringe.c')
-rw-r--r--src/fringe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fringe.c b/src/fringe.c
index 2a46e3c34f2..d8d80bb3fe9 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -1675,10 +1675,10 @@ Return nil if POS is not visible in WINDOW. */)
1675 1675
1676 if (!NILP (pos)) 1676 if (!NILP (pos))
1677 { 1677 {
1678 CHECK_FIXNUM_COERCE_MARKER (pos); 1678 EMACS_INT p = fix_position (pos);
1679 if (! (BEGV <= XFIXNUM (pos) && XFIXNUM (pos) <= ZV)) 1679 if (! (BEGV <= p && p <= ZV))
1680 args_out_of_range (window, pos); 1680 args_out_of_range (window, pos);
1681 textpos = XFIXNUM (pos); 1681 textpos = p;
1682 } 1682 }
1683 else if (w == XWINDOW (selected_window)) 1683 else if (w == XWINDOW (selected_window))
1684 textpos = PT; 1684 textpos = PT;