Skip to content

Commit

Permalink
fix flymake-languagetool-{next,previous}
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeacock19 committed Mar 3, 2024
1 parent 870012d commit 90381ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flymake-languagetool.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90381ff

Please sign in to comment.