Skip to content

Commit

Permalink
add check for forward-sentence-function variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeacock19 committed Apr 2, 2024
1 parent 870d459 commit bc6afc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flymake-languagetool.el
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,10 @@ A positive ARG will return end point ARG number sentence following PT."
(when pt
(save-excursion
(goto-char pt)
(funcall forward-sentence-function arg))))
(funcall (or (and (boundp 'forward-sentence-function)
forward-sentence-function)
#'forward-sentence)
arg))))

(defun flymake-languagetool--setup ()
"Used to reset the checked state of the current buffer."
Expand Down

0 comments on commit bc6afc5

Please sign in to comment.