famiu / feline.nvim

A minimal, stylish and customizable statusline for Neovim written in Lua
GNU General Public License v3.0
1.04k stars 55 forks source link

fix(providers): search_count with empty results #332

Closed joshuali925 closed 1 year ago

joshuali925 commented 1 year ago

I'm still getting the same error in #328 because in #329 empty check is done using result == {}, but in lua {} == {} is false. Using next(result) == nil check (taken from https://stackoverflow.com/a/1252776) works.