]> git.eshelyaron.com Git - emacs.git/commit
Fix placement of diagnostics with same start and end positions
authorMichal Krzywkowski <k.michal@zoho.com>
Fri, 3 Aug 2018 08:22:18 +0000 (10:22 +0200)
committerJoão Távora <joaotavora@gmail.com>
Fri, 3 Aug 2018 08:22:18 +0000 (09:22 +0100)
commit7b7312f8d66ca7a34fb509704f77009db7d7aaa7
treeff6149647bd8e5c0c667143dbf410c36caec0f12
parentb14cba5cb73dfaa94b4f277362c938bf83a48b9d
Fix placement of diagnostics with same start and end positions

Some servers such as cquery and clangd publish diagnostic with
identical start and end positions.

* eglot.el (eglot-handle-notification
  :textDocument/publishDiagnostics): Add 1 to :line since LSP lines
  are 0-based.  Don't subtract 1 from :character, since both emacs and
  LSP have 0-based columns.
lisp/progmodes/eglot.el