Skip to content

Commit

Permalink
adding test file 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Badragan committed May 7, 2024
1 parent 774c0eb commit a2d70ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/grug-far/actions/replace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ local function replaceInMatchedFiles(params)
replaceInFile({
file = files[index],
context = context,
on_done = function(err)
on_done = vim.schedule_wrap(function(err)
if err then
-- optimistically try to continue
errorMessages = errorMessages .. '\n' .. err
Expand All @@ -82,7 +82,7 @@ local function replaceInMatchedFiles(params)
else
on_finish_all(#errorMessages > 0 and 'error' or 'success', errorMessages)
end
end
end)
})
end

Expand Down
1 change: 1 addition & 0 deletions test_file2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
testing2 stephan and something else

0 comments on commit a2d70ab

Please sign in to comment.