Skip to content

Conversation

AThePeanut4
Copy link
Contributor

For :Gitsigns next_hunk, :Gitsigns prev_hunk and :Gitsigns blame_line, named arguments aren't working. For example, :Gitsigns blame_line full=true does not display the "full" blame popup, and behaves identically to :Gitsigns blame_line.

I've just added three wrapper functions to the C table, which seems to solve the issue for me. From what I can tell, the logic in lua/gitsigns/cli.lua:106 dealing with named arguments isn't needed, since all of the the functions in gitsigns.actions that use named arguments (ie a table) now have wrappers in C - but I haven't changed anything there because I'm not confident it won't break anything :)

@lewis6991
Copy link
Owner

Looks good. Thanks.

@lewis6991 lewis6991 merged commit ecc857f into lewis6991:main Sep 23, 2023
@AThePeanut4 AThePeanut4 deleted the fix-cli-named-args branch September 23, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants