Skip to content
  • Rate limit · GitHub

    Whoa there!

    You have triggered an abuse detection mechanism.

    Please wait a few minutes before you try again;
    in some cases this may take up to an hour.

  • Notifications You must be signed in to change notification settings
  • Fork 194

Commit

Permalink
fix: fileformat autocmd bug
Browse files Browse the repository at this point in the history
Fixes #1123
Rate limit · GitHub

Whoa there!

You have triggered an abuse detection mechanism.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

lewis6991 committed Jan 20, 2025
1 parent f10fdda commit f41b934
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/gitsigns/attach.lua
Original file line number Diff line number Diff line change
@@ -124,7 +124,9 @@ local setup = util.once(function()
return
end
bcache:invalidate(true)
manager.update(buf)
async.run(function()
manager.update(buf)
end)
end,
})

1 change: 1 addition & 0 deletions lua/gitsigns/manager.lua
Original file line number Diff line number Diff line change
@@ -454,6 +454,7 @@ function M.schedule(bufnr, check_compare_text)
return true
end

--- @async
--- Ensure updates cannot be interleaved.
--- Since updates are asynchronous we need to make sure an update isn't performed
--- whilst another one is in progress. If this happens then schedule another

0 comments on commit f41b934

Please sign in to comment.