fix: add cli binding for show

This commit is contained in:
Lewis Russell 2024-07-15 17:10:49 +01:00
parent e9c4187c37
commit d9f997dba7
2 changed files with 5 additions and 0 deletions

View file

@ -1240,6 +1240,10 @@ M.show = function(revision, callback)
diffthis.show(bufnr, revision, callback)
end
C.show = function(args, _)
M.show(args[1])
end
CP.show = complete_heads
--- @param buf_or_filename string|integer

View file

@ -181,6 +181,7 @@ function M.create(argc_or_func, func)
return function(...)
local callback = argc and select(argc + 1, ...) or nil
assert(not callback or type(callback) == 'function')
return run(func, callback, unpack({ ... }, 1, argc))
end
end