From 90381ffd03c35a093d7521a41e92a39e0b858c45 Mon Sep 17 00:00:00 2001 From: Trey Peacock Date: Sun, 3 Mar 2024 12:40:39 -0700 Subject: [PATCH] fix flymake-languagetool-{next,previous} --- flymake-languagetool.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flymake-languagetool.el b/flymake-languagetool.el index 7e02b50..039fc50 100644 --- a/flymake-languagetool.el +++ b/flymake-languagetool.el @@ -506,13 +506,13 @@ Depending on TYPE, either ignore Rule ID or Category ID." (flymake-languagetool--ovs) (nreverse (flymake-languagetool--ovs)))) (tail (seq-drop-while (lambda (ov) (if (> n 0) - (< (overlay-start ov) (point)) - (> (overlay-start ov) (point)))) + (<= (overlay-start ov) (point)) + (>= (overlay-start ov) (point)))) ovs)) (chain (if flymake-wrap-around (seq-concatenate 'list tail ovs) tail)) - (target (nth (abs n) chain))) + (target (nth (1- (abs n)) chain))) (goto-char (overlay-start target)))) ;;;###autoload