Skip to content

Commit

Permalink
Fix Flymake diagnostic column off-by-one error.
Browse files Browse the repository at this point in the history
  • Loading branch information
brownts committed Apr 20, 2024
1 parent 0f3c340 commit 5a20661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp-diagnostics.el
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ See https://github.com/emacs-lsp/lsp-mode."
(when (= start end)
(if-let ((region (flymake-diag-region (current-buffer)
(1+ start-line)
character)))
(1+ character))))
(setq start (car region)
end (cdr region))
(lsp-save-restriction-and-excursion
Expand Down

0 comments on commit 5a20661

Please sign in to comment.