diff options
| -rw-r--r-- | autoload/gitcha.vim | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/autoload/gitcha.vim b/autoload/gitcha.vim index 7ed45c7..e5543f7 100644 --- a/autoload/gitcha.vim +++ b/autoload/gitcha.vim @@ -1,6 +1,7 @@  " Save user-defined completefunc so it can be restored after running this  " custom completion function  let s:old_completefunc = &completefunc +let s:old_completeopt = &completeopt  " Completion for Git SHAs in the current repository  function! gitcha#GitSHAComplete(findstart, base) @@ -16,6 +17,7 @@ function! gitcha#GitSHAComplete(findstart, base)  	" Restore user completion function  	let &completefunc = s:old_completefunc +	" let &completeopt = s:old_completeopt  	" Match Git SHAs in the current repository  	let matches = [] @@ -57,5 +59,6 @@ endfunction  " Allow mappings to initiate completion  function! gitcha#StartGitSHACompletion()  	set completefunc=gitcha#GitSHAComplete +	set completeopt=menu,menuone,preview  	return "\<C-x>\<C-u>"  endfunction | 
