Skip to content

Commit

Permalink
- Improved lock behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 2, 2013
1 parent 2d56986 commit dba771a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions autoload/neocomplcache.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: neocomplcache.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 01 Jan 2013.
" Last Modified: 02 Jan 2013.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -2004,11 +2004,6 @@ endfunction"}}}

" Command functions. "{{{
function! neocomplcache#toggle_lock() "{{{
if !neocomplcache#is_enabled()
call neocomplcache#enable()
return
endif

if neocomplcache#get_current_neocomplcache().lock
echo 'neocomplcache is unlocked!'
call neocomplcache#unlock()
Expand All @@ -2018,18 +2013,10 @@ function! neocomplcache#toggle_lock() "{{{
endif
endfunction"}}}
function! neocomplcache#lock() "{{{
if !neocomplcache#is_enabled()
return
endif

let neocomplcache = neocomplcache#get_current_neocomplcache()
let neocomplcache.lock = 1
endfunction"}}}
function! neocomplcache#unlock() "{{{
if !neocomplcache#is_enabled()
return
endif

let neocomplcache = neocomplcache#get_current_neocomplcache()
let neocomplcache.lock = 0
endfunction"}}}
Expand Down
1 change: 1 addition & 0 deletions doc/neocomplcache.txt
Expand Up @@ -1496,6 +1496,7 @@ CHANGELOG *neocomplcache-changelog*

2013-01-02
- Improved initialization timing.
- Improved lock behavior.

2012-12-31
- Improved neocomplcache#sources#buffer_complete#caching_current_line().
Expand Down
1 change: 0 additions & 1 deletion plugin/neocomplcache.vim
Expand Up @@ -190,7 +190,6 @@ let g:neocomplcache_enable_debug =
\ get(g:, 'neocomplcache_enable_debug', 0)
if exists('g:neocomplcache_enable_at_startup') && g:neocomplcache_enable_at_startup
augroup neocomplcache
autocmd!
" Enable startup.
autocmd InsertEnter * call neocomplcache#enable()
augroup END
Expand Down

0 comments on commit dba771a

Please sign in to comment.