summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-12-03 17:57:28 +0100
committerGitHub <noreply@github.com>2021-12-03 17:57:28 +0100
commit27294d73e4562cbc83c9c488b4618f012deade7e (patch)
tree74e9225d2ba540ae9d8abfaf5519e46d758e67d5 /lua/telescope/make_entry.lua
parent582dbd4da8c7e4b1137013574acd37a096c2fbf2 (diff)
fix: regression with grep builtins (#1548)
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index ed20eba..18da57a 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -113,7 +113,7 @@ do
local find = (function()
if Path.path.sep == "\\" then
return function(t)
- local start, _, filename, lnum, col, text = string.find(t.value, [[([^:]+):(%d+):(%d+):(.*)]])
+ local start, _, filename, lnum, col, text = string.find(t, [[([^:]+):(%d+):(%d+):(.*)]])
-- Handle Windows drive letter (e.g. "C:") at the beginning (if present)
if start == 3 then
@@ -124,7 +124,7 @@ do
end
else
return function(t)
- local _, _, filename, lnum, col, text = string.find(t.value, [[([^:]+):(%d+):(%d+):(.*)]])
+ local _, _, filename, lnum, col, text = string.find(t, [[([^:]+):(%d+):(%d+):(.*)]])
return filename, lnum, col, text
end
end