diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-17 08:18:28 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-17 08:18:28 -0400 |
| commit | 7d3e93e7b4de0e830c7e5058b809e3f783b42ec5 (patch) | |
| tree | bb8a951a47575ef017a7554445930fa78b18fa0a /lua/telescope/sorters.lua | |
| parent | 17ee4a96ff500aa08f9f6d3080655a6776a1b73c (diff) | |
fix: Don't pass nil to scoring func
Diffstat (limited to 'lua/telescope/sorters.lua')
| -rw-r--r-- | lua/telescope/sorters.lua | 2 |
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(...) |
