summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-09-17 08:18:28 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-09-17 08:18:28 -0400
commit7d3e93e7b4de0e830c7e5058b809e3f783b42ec5 (patch)
treebb8a951a47575ef017a7554445930fa78b18fa0a /lua
parent17ee4a96ff500aa08f9f6d3080655a6776a1b73c (diff)
fix: Don't pass nil to scoring func
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/sorters.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/sorters.lua b/lua/telescope/sorters.lua
index dd7cf4f..5931eb0 100644
--- a/lua/telescope/sorters.lua
+++ b/lua/telescope/sorters.lua
@@ -26,7 +26,7 @@ end
function Sorter:score(prompt, entry)
-- TODO: Decide if we actually want to check the type every time.
- return self:scoring_function(prompt, type(entry) == "string" and entry or entry.ordinal, entry)
+ return self:scoring_function(prompt or "", type(entry) == "string" and entry or entry.ordinal, entry)
end
function sorters.new(...)