Skip to content

Commit 1b4c133

Browse files
author
thegrb93
authored
Merge pull request #1978 from TaylorRatliff/master
Issue #1974: E2: Ctrl+H Replace 'Match Whole Word' doesn't work
2 parents 6b5274e + dbe1e76 commit 1b4c133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/wire/client/text_editor/texteditor.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ function EDITOR:ReplaceAll( str, replacewith )
11161116
self:SelectAll()
11171117
self:SetSelection( txt2 )
11181118
else
1119-
txt = string_gsub( txt, str, replacewith )
1119+
txt = string_gsub( txt, pattern, replacewith )
11201120

11211121
self:SelectAll()
11221122
self:SetSelection( txt )

0 commit comments

Comments
 (0)