diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-12-27 09:49:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-27 09:49:07 +0100 |
| commit | 802fe5d49e1150b7aebd4a9f15043156eefcfcf8 (patch) | |
| tree | 531c0172d923d17c05998451b1929097006ff689 | |
| parent | a1f838d436fefa092159b6b2b96802d222c6145e (diff) | |
fix: transform_path nil input (#1576)
| -rw-r--r-- | lua/telescope/utils.lua | 3 |
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 |
