Skip to content

Commit 5899106

Browse files
authored
fix(utils): filter_symbols return table consistently (#3421)
Previously, filter_symbols returned nil in certain cases, which could lead to unexpected behavior. This change ensures that an empty table is always returned, maintaining consistency.
1 parent 78857db commit 5899106

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/telescope/utils.lua

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ utils.filter_symbols = function(results, opts, post_filter)
180180
level = "WARN",
181181
})
182182
end
183+
return {}
183184
end
184185

185186
local path_filename_first = function(path, reverse_directories)

0 commit comments

Comments
 (0)