Skip to content

Commit

Permalink
fix(cli): named args not working
Browse files Browse the repository at this point in the history
  • Loading branch information
AThePeanut4 authored and lewis6991 committed Sep 23, 2023
1 parent 7de0125 commit ecc857f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lua/gitsigns/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,10 @@ M.next_hunk = function(opts)
nav_hunk(opts, true)
end

C.next_hunk = function(args, _)
M.next_hunk(args)
end

--- Jump to the previous hunk in the current buffer. If a hunk preview
--- (popup or inline) was previously opened, it will be re-opened
--- at the previous hunk.
Expand All @@ -589,6 +593,10 @@ M.prev_hunk = function(opts)
nav_hunk(opts, false)
end

C.prev_hunk = function(args, _)
M.prev_hunk(args)
end

--- @param fmt {[1]: string, [2]: string}[][]
--- @param info table
--- @return {[1]: string, [2]: string}[][]
Expand Down Expand Up @@ -915,6 +923,10 @@ M.blame_line = async.void(function(opts)
popup.create(lines_format(blame_fmt, result), config.preview_config, 'blame')
end)

C.blame_line = function(args, _)
M.blame_line(args)
end

local function update_buf_base(buf, bcache, base)
bcache.base = base
bcache:invalidate()
Expand Down

0 comments on commit ecc857f

Please sign in to comment.