Return first, not last, value for FugitiveConfigGet()

This commit is contained in:
Tim Pope
2023-12-07 15:43:13 -05:00
parent 2c999d4a69
commit c4a38c92dc
2 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ endfunction
" argument can be either the object returned by FugitiveConfig(), or a Git
" dir or buffer number to be passed along to FugitiveConfig().
function! FugitiveConfigGet(name, ...) abort
return get(call('FugitiveConfigGetAll', [a:name] + (a:0 ? [a:1] : [])), 0, get(a:, 2, ''))
return get(call('FugitiveConfigGetAll', [a:name] + (a:0 ? [a:1] : [])), -1, get(a:, 2, ''))
endfunction
" FugitiveConfigGetAll() is like FugitiveConfigGet() but returns a list of