We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed77c49 commit 64046ecCopy full SHA for 64046ec
lua/telescope-live-grep-args/actions/tokenize.lua
@@ -53,14 +53,10 @@ return function(opts)
53
if opts.trim then
54
prompt = vim.trim(prompt)
55
end
56
-
57
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
+ -- TODO interpret two spaces or more as a literal space
+ for token in prompt:gmatch("%S+") do
+ table.insert(tokens, token)
64
65
66
prompt = ""
0 commit comments