Skip to content

Commit c96ba2b

Browse files
committed
fix: cannot call api functions from callback
1 parent fc83c2c commit c96ba2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/diffview/vcs/file.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function File:_produce_data(callback)
146146
function(err, result)
147147
if err then
148148
utils.err(
149-
("Failed to create diff buffer: '%s'"):format(api.nvim_buf_get_name(self.bufnr)),
149+
("Failed to create diff buffer: '%s'"):format(self.path),
150150
true
151151
)
152152
return

0 commit comments

Comments
 (0)