Skip to content

Fix TigOpenFileWithCommit not using default args#35

Open
maxigit wants to merge 1 commit intoiberianpig:masterfrom
maxigit:fix_default_args
Open

Fix TigOpenFileWithCommit not using default args#35
maxigit wants to merge 1 commit intoiberianpig:masterfrom
maxigit:fix_default_args

Conversation

@maxigit
Copy link
Copy Markdown
Contributor

@maxigit maxigit commented Sep 16, 2021

Fixes TigOpenFileWithCommit broken if not all arguments are given.

Comment thread plugin/tig_explorer.vim
Comment on lines +39 to +40
\ call call('tig_explorer#open_file_with_commit',
\ slice(["<bang>",<q-mods>,<f-args>]+['','',''],0,5))
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants