From dbe1e7621cc28844bd67865241478efe5cd4a97e Mon Sep 17 00:00:00 2001 From: Taylor Date: Thu, 12 Sep 2019 15:44:28 -0500 Subject: [PATCH] Issue #1974E2: Ctrl+H Replace 'Match Whole Word' doesn't work #1974 --- lua/wire/client/text_editor/texteditor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/wire/client/text_editor/texteditor.lua b/lua/wire/client/text_editor/texteditor.lua index 1c86e3dad0..2bd6bd03a6 100644 --- a/lua/wire/client/text_editor/texteditor.lua +++ b/lua/wire/client/text_editor/texteditor.lua @@ -1116,7 +1116,7 @@ function EDITOR:ReplaceAll( str, replacewith ) self:SelectAll() self:SetSelection( txt2 ) else - txt = string_gsub( txt, str, replacewith ) + txt = string_gsub( txt, pattern, replacewith ) self:SelectAll() self:SetSelection( txt )