Skip to content

Commit 82e5b67

Browse files
joshbodeibhagwan
authored andcommitted
Add ~ to the list of very magic special characters
1 parent d39620b commit 82e5b67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/fzf-lua/utils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ end
223223

224224
function M.regex_to_magic(str)
225225
-- Convert regex to "very magic" pattern, basically a regex
226-
-- with special meaning for "%=&<>", `:help /magic`
227-
return [[\v]] .. str:gsub("[%%=&@<>]", function(x)
226+
-- with special meaning for "%=&<>~", `:help /magic`
227+
return [[\v]] .. str:gsub("[%%=&@<>~]", function(x)
228228
return "\\" .. x
229229
end)
230230
end

0 commit comments

Comments
 (0)