From 589910694bafe3975d0f025a750dcabc09824126 Mon Sep 17 00:00:00 2001 From: James Trew <66286082+jamestrew@users.noreply.github.com> Date: Sat, 22 Feb 2025 19:47:58 -0500 Subject: [PATCH] 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. --- lua/telescope/utils.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/telescope/utils.lua b/lua/telescope/utils.lua index 4953e9d..5f85ecb 100644 --- a/lua/telescope/utils.lua +++ b/lua/telescope/utils.lua @@ -180,6 +180,7 @@ utils.filter_symbols = function(results, opts, post_filter) level = "WARN", }) end + return {} end local path_filename_first = function(path, reverse_directories)