From cde54e3066e298ec235770c4715f1263922488c7 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 6 Jan 2014 11:47:42 +0100 Subject: [PATCH] Simplify initialisation. --- plugin/gitgutter.vim | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index da6ff46..3b5d539 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -28,14 +28,9 @@ call s:set('g:gitgutter_sign_modified_removed', '~_') call s:set('g:gitgutter_diff_args', '') call s:set('g:gitgutter_escape_grep', 0) -function! s:init() - if !exists('g:gitgutter_initialised') - call highlight#define_sign_column_highlight() - call highlight#define_highlights() - call highlight#define_signs() - let g:gitgutter_initialised = 1 - endif -endfunction +call highlight#define_sign_column_highlight() +call highlight#define_highlights() +call highlight#define_signs() " }}} @@ -53,7 +48,6 @@ command GitGutterAll call GitGutterAll() function! GitGutter(file, ...) call utility#set_file(a:file) if utility#is_active() - call s:init() if (a:0 == 1) || utility#has_unsaved_changes(a:file) let diff = diff#run_diff(1) else