From ddf60d2bbe5ff49de870b83ea7ecd1ff89a3d929 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Thu, 7 Jul 2022 19:07:52 +0200 Subject: [PATCH] fix: grep_string search= jump to line fix #2047 --- lua/telescope/actions/set.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/actions/set.lua b/lua/telescope/actions/set.lua index 017975b..45d0a36 100644 --- a/lua/telescope/actions/set.lua +++ b/lua/telescope/actions/set.lua @@ -104,7 +104,7 @@ action_set.edit = function(prompt_bufnr, command) -- TODO: Check for off-by-one row = entry.row or entry.lnum - col = entry.col + col = vim.F.if_nil(entry.col, 1) elseif not entry.bufnr then -- TODO: Might want to remove this and force people -- to put stuff into `filename`