From 6076c9678643a8b2fc9973f16ec9efcd5dbe1aca Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 6 Jul 2018 10:15:00 +0100 Subject: [PATCH] Only set up maps once per buffer. --- autoload/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter.vim b/autoload/gitgutter.vim index 3de6cd2..1a4a2cf 100644 --- a/autoload/gitgutter.vim +++ b/autoload/gitgutter.vim @@ -24,10 +24,10 @@ endfunction " Finds the file's path relative to the repo root. function! gitgutter#init_buffer(bufnr) if gitgutter#utility#is_active(a:bufnr) - call s:setup_maps() let p = gitgutter#utility#repo_path(a:bufnr, 0) if type(p) != s:t_string || empty(p) call gitgutter#utility#set_repo_path(a:bufnr) + call s:setup_maps() endif endif endfunction