Skip to content

Commit

Permalink
fix(update_show_deleted): show_deleted when buffer not in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Garcia committed Mar 30, 2023
1 parent ca473e2 commit 235617b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/gitsigns/manager.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion teal/gitsigns/manager.tl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ local function update_show_deleted(bufnr: integer)

clear_deleted(bufnr)
if config.show_deleted then
for _, hunk in ipairs(bcache.hunks) do
for _, hunk in ipairs(bcache.hunks or {}) do
M.show_deleted(bufnr, ns_rm, hunk)
end
end
Expand Down

0 comments on commit 235617b

Please sign in to comment.