diff options
| author | fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com> | 2021-09-13 18:30:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-13 18:30:14 +0200 |
| commit | 29997233bc3be5c26c06575f977a334afe675a5f (patch) | |
| tree | cb4159a26396b03d2df41661a64661d8113f6e99 /lua/telescope | |
| parent | 1d17cc4abc493d20b4aba36569e8805c2382ea7b (diff) | |
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
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/actions/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 7e65a8f..7accab0 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -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 |
