Skip to content

Commit 9ce58b0

Browse files
committed
The grep command does not exclude symbolic links in Windows
1 parent 09dc879 commit 9ce58b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gp/tasker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ M.grep_directory = function(buf, directory, pattern, callback)
193193
-- strip leading and trailing non alphanumeric characters
194194
local re = pattern:gsub("^%W*(.-)%W*$", "%1")
195195

196-
M.run(buf, "grep", { "-irEn", "--null", pattern, directory }, function(c, _, stdout, _)
196+
M.run(buf, "grep", { "-irEn", "--null", "--exclude=last.md", pattern, directory }, function(c, _, stdout, _)
197197
local results = {}
198198
if c ~= 0 then
199199
callback(results, re)

0 commit comments

Comments
 (0)