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 TigOpenFileWithCommit not using default args #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maxigit
Copy link
Contributor

@maxigit maxigit commented Sep 16, 2021

Fixes TigOpenFileWithCommit broken if not all arguments are given.

Comment on lines +39 to +40
\ call call('tig_explorer#open_file_with_commit',
\ slice(["<bang>",<q-mods>,<f-args>]+['','',''],0,5))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not working on Vim 8.1 and NVIM v0.4.3

Image from Gyazo

These errors are meaning,

Unknown function: slice
Invalid argument: call

@maxigit
Copy link
Contributor Author

maxigit commented Sep 26, 2021

I'm just trying to find a way to fix a regression which has been introduced to remove the use of default value in function arguments.
I'm not sure why this has been done initially. Does nvim not support default value ? I thought the point of neovim was to be compatible with vim?
Any idea about how to make it works then ?

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.

None yet

2 participants