Skip to content

Commit 64046ec

Browse files
committed
Revert "implement separation by two spaces"
This reverts commit ed77c49.
1 parent ed77c49 commit 64046ec

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lua/telescope-live-grep-args/actions/tokenize.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,10 @@ return function(opts)
5353
if opts.trim then
5454
prompt = vim.trim(prompt)
5555
end
56-
5756
local tokens = {}
58-
for chunks in prompt:gmatch("%S%S+") do
59-
for chunk in chunks do
60-
for token in chunk:gmatch("%S") do
61-
table.insert(tokens, token)
62-
end
63-
end
57+
-- TODO interpret two spaces or more as a literal space
58+
for token in prompt:gmatch("%S+") do
59+
table.insert(tokens, token)
6460
end
6561

6662
prompt = ""

0 commit comments

Comments
 (0)