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:
fdschmidt93
2021-09-13 18:30:14 +02:00
committed by GitHub
parent 1d17cc4abc
commit 29997233bc

View File

@@ -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