-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
complexity:lowLow-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.mdLow-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.mddiagnostic
Description
Feature already in Vim?
No response
Feature description
Diagnostics may contain column numbers. But currently neovim doesn't know about columns and displays them out of order when converted to a quickfix list. The problem is within this function:
neovim/runtime/lua/vim/diagnostic.lua
Lines 1666 to 1672 in 1c47949
table.sort(list, function(a, b) | |
if a.bufnr == b.bufnr then | |
return a.lnum < b.lnum | |
else | |
return a.bufnr < b.bufnr | |
end | |
end) |
A further test a.col < b.col
is necessary when both bufnr
and lnum
compare equal.
justinmk
Metadata
Metadata
Assignees
Labels
complexity:lowLow-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.mdLow-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.mddiagnostic