Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): named args not working #884

Merged
merged 1 commit into from
Sep 23, 2023

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
6 checks passed
@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