You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qf.below/qf.above don't seem to be working when called from inside the quickfix list buffer. When triggered, qf jumps to the line under the cursor, not the next/previous one. I took a look at the code and it seems to be looking for the item's buffer number and comparing it to the quickfix buffer's buffer number, which will never match.
Yes, the above/below emulate :cabove and :cbelow but allow navigating across buffer boundaries and multiple errors per single line.
*:cbel* *:cbelow*
:[count]cbel[ow] Go to the [count] error below the current line in the
current buffer. If [count] is omitted, then 1 is
used. If there are no errors, then an error message
is displayed. Assumes that the entries in a quickfix
list are sorted by their buffer number and line
number. If there are multiple errors on the same
line, then only the first entry is used. If [count]
exceeds the number of entries below the current line,
then the last error in the file is selected.
As the below item is based on the current buffer and position, it is not well defined when the buffer isn't in the quickfix entries. What it does now is compare the bufnr numerically as they are sorted in the quickfix list.
If the current buffer > entry buffer the buffer was not present in the list.
However, if the current buffer is the higher than any item in the list it reaches the end of the loop.
What do you think it should do?
For quickfix buffers it could fall back to next/prev, but for normal buffers not in the entry it will currently select the next higher bufnr that is in the list
qf.below
/qf.above
don't seem to be working when called from inside the quickfix list buffer. When triggered, qf jumps to the line under the cursor, not the next/previous one. I took a look at the code and it seems to be looking for the item's buffer number and comparing it to the quickfix buffer's buffer number, which will never match.Here's a lazy.nvim config to reproduce:
You can use the
Q
mapping to populate the quickfix list with the first two lines of the current buffer.The text was updated successfully, but these errors were encountered: