]> git.eshelyaron.com Git - emacs.git/commit
Fix arg-out-of-range errors in 'line-number-at-pos'
authorEli Zaretskii <eliz@gnu.org>
Thu, 20 May 2021 09:01:40 +0000 (12:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 20 May 2021 09:01:40 +0000 (12:01 +0300)
commit8b44740a6aee6254a60243df6ef3dd80ce3f3a36
treef17fa3bd02057459bc24d98354cbba0c61ba857a
parent328efb47d04e3aa996bb8cd387d01c1a66ec29f5
Fix arg-out-of-range errors in 'line-number-at-pos'

* src/fns.c (Fline_number_at_pos): Pass character position to
args_out_of_range.  Suggested by Andreas Schwab
<schwab@linux-m68k.org>.  Call args_out_of_range_3 to show both
ends of the accessible portion.
src/fns.c