summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
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(...)