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 {
|
||||
bufnr = entry.bufnr,
|
||||
filename = from_entry.path(entry, false),
|
||||
lnum = entry.lnum,
|
||||
col = entry.col,
|
||||
lnum = vim.F.if_nil(entry.lnum, 1),
|
||||
col = vim.F.if_nil(entry.col, 1),
|
||||
text = text,
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user