From 16b7a060a3e20b8e159783f42ce4aa79a158208c Mon Sep 17 00:00:00 2001 From: Teo Ljungberg Date: Wed, 24 Apr 2019 09:57:04 +0200 Subject: [PATCH] Pass in matching number of arguments for `:Gread` This was changed in 1ac2c70 for the other git commands, leading to the following error message: ``` E118: Too many arguments for function: s:ReadCommand ``` --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index ca2079e..fd5eade 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3187,7 +3187,7 @@ function! s:Open(cmd, bang, mods, arg, args) abort return mods . ' ' . a:cmd . pre . ' ' . s:fnameescape(file) endfunction -function! s:ReadCommand(line1, line2, range, count, bang, mods, arg, args) abort +function! s:ReadCommand(line1, line2, range, count, bang, mods, reg, arg, args) abort let mods = a:mods ==# '' ? '' : a:mods let after = a:line2 if a:count < 0