Allow Fline_number_at_pos being called with a marker

* src/fns.c (Fline_number_at_pos): Also allow being called with a
marker (since the Lisp function allowed that).
This commit is contained in:
Lars Ingebrigtsen 2021-02-07 16:42:25 +01:00
parent 56e76f0eb0
commit 5461808c40

View file

@ -5771,7 +5771,9 @@ from the absolute start of the buffer. */)
{
ptrdiff_t pos, start = BEGV;
if (NILP (position))
if (MARKERP (position))
pos = marker_position (position);
else if (NILP (position))
pos = PT;
else
{