From 0c885a5992c9ff3b4c548ebd9d55a05ec1b5c688 Mon Sep 17 00:00:00 2001 From: Azumgi Date: Sun, 4 Feb 2018 00:43:36 +0300 Subject: [PATCH] fixed % symbol crash in search bar (options menu) --- vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua b/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua index 64cc233..b3cf41d 100644 --- a/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua +++ b/vmf_source/scripts/mods/vmf/modules/vmf_options_view.lua @@ -2388,6 +2388,8 @@ VMFOptionsView.update_search_bar = function (self) local new_search_text = KeystrokeHelper.parse_strokes(old_search_text, text_index, "insert", keystrokes) + new_search_text = string.gsub(new_search_text, "%%", "") + if new_search_text ~= old_search_text then self:filter_mods_settings_by_name(new_search_text) end