summaryrefslogtreecommitdiff
path: root/lua/telescope
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-12-27 09:49:07 +0100
committerGitHub <noreply@github.com>2021-12-27 09:49:07 +0100
commit802fe5d49e1150b7aebd4a9f15043156eefcfcf8 (patch)
tree531c0172d923d17c05998451b1929097006ff689 /lua/telescope
parenta1f838d436fefa092159b6b2b96802d222c6145e (diff)
fix: transform_path nil input (#1576)
Diffstat (limited to 'lua/telescope')
-rw-r--r--lua/telescope/utils.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua
index 7fba7e9..bce2c2c 100644
--- a/lua/telescope/utils.lua
+++ b/lua/telescope/utils.lua
@@ -230,6 +230,9 @@ local calc_result_length = function(truncate_len)
end
utils.transform_path = function(opts, path)
+ if path == nil then
+ return
+ end
if is_uri(path) then
return path
end