mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
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
```
This commit is contained in:
@@ -3187,7 +3187,7 @@ function! s:Open(cmd, bang, mods, arg, args) abort
|
|||||||
return mods . ' ' . a:cmd . pre . ' ' . s:fnameescape(file)
|
return mods . ' ' . a:cmd . pre . ' ' . s:fnameescape(file)
|
||||||
endfunction
|
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 ==# '<mods>' ? '' : a:mods
|
let mods = a:mods ==# '<mods>' ? '' : a:mods
|
||||||
let after = a:line2
|
let after = a:line2
|
||||||
if a:count < 0
|
if a:count < 0
|
||||||
|
|||||||
Reference in New Issue
Block a user