summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/telescope/actions/set.lua2
1 files changed, 1 insertions, 1 deletions
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`