fix: make qf commands possible from any picker (#1237)
* Allow any qf cmd by defaulting to {lnum=1, col=1} for qflist if values are unset
This commit is contained in:
@@ -619,8 +619,8 @@ local entry_to_qf = function(entry)
|
|||||||
return {
|
return {
|
||||||
bufnr = entry.bufnr,
|
bufnr = entry.bufnr,
|
||||||
filename = from_entry.path(entry, false),
|
filename = from_entry.path(entry, false),
|
||||||
lnum = entry.lnum,
|
lnum = vim.F.if_nil(entry.lnum, 1),
|
||||||
col = entry.col,
|
col = vim.F.if_nil(entry.col, 1),
|
||||||
text = text,
|
text = text,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user