From 92399482d4508e79eaab66391e17d2ef1bdef8f2 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sun, 18 Aug 2024 02:46:32 +0200 Subject: [PATCH] also search in descriptions in the lua functions filter - closes #3651 --- src/BizHawk.Client.EmuHawk/tools/Lua/LuaFunctionsForm.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaFunctionsForm.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaFunctionsForm.cs index aa379733b9..9eebe2f2c3 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaFunctionsForm.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaFunctionsForm.cs @@ -6,6 +6,7 @@ using System.Windows.Forms; using BizHawk.Client.Common; using BizHawk.Common; using BizHawk.Common.CollectionExtensions; +using BizHawk.Common.StringExtensions; namespace BizHawk.Client.EmuHawk { @@ -30,7 +31,8 @@ namespace BizHawk.Client.EmuHawk if (!string.IsNullOrWhiteSpace(FilterBox.Text)) { _filteredList = _functionList - .Where(f => $"{f.Library}.{f.Name}".ToLowerInvariant().Contains(FilterBox.Text.ToLowerInvariant())) + .Where(f => $"{f.Library}.{f.Name}".Contains(FilterBox.Text, StringComparison.OrdinalIgnoreCase) + || f.Description.Contains(FilterBox.Text, StringComparison.OrdinalIgnoreCase)) .ToList(); } else