From e4a0109f577ec1049d4cd48856879a0eedb1cd42 Mon Sep 17 00:00:00 2001 From: somini Date: Tue, 18 Aug 2020 18:32:30 +0100 Subject: [PATCH] Use a dictionary instead of many small variables See https://github.com/junegunn/gv.vim/pull/48#issuecomment-674687071 --- plugin/gv.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/gv.vim b/plugin/gv.vim index 9221a94..c4d1711 100644 --- a/plugin/gv.vim +++ b/plugin/gv.vim @@ -250,8 +250,10 @@ function! s:list(fugitive_repo, log_opts) let git_log_cmd = call(a:fugitive_repo.git_command, git_args, a:fugitive_repo) let repo_short_name = fnamemodify(a:fugitive_repo.tree(), ':t') - let b:gv_opts = a:log_opts - let b:gv_repo_short_name = repo_short_name + let b:gv = { + \ 'opts': a:log_opts, + \ 'repo_short_name': repo_short_name, + \ } let bufname = repo_short_name.' '.join(a:log_opts) silent exe (bufexists(bufname) ? 'buffer' : 'file') fnameescape(bufname)