From 802fe5d49e1150b7aebd4a9f15043156eefcfcf8 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Mon, 27 Dec 2021 09:49:07 +0100 Subject: [PATCH] fix: transform_path nil input (#1576) --- lua/telescope/utils.lua | 3 +++ 1 file changed, 3 insertions(+) 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