Permalink
Browse files

- Improved neocomplcache#sources#buffer_complete#caching_current_line().

  • Loading branch information...
1 parent e7815eb commit 9de0a6e507f5236bb25e6958cb0530a1205f63bf @Shougo committed Dec 31, 2012
View
7 autoload/neocomplcache/sources/buffer_complete.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: buffer_complete.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 29 Nov 2012.
+" Last Modified: 31 Dec 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -45,8 +45,7 @@ function! s:source.initialize() "{{{
autocmd BufWritePost *
\ call s:check_recache()
autocmd InsertEnter,InsertLeave *
- \ call s:caching_current_buffer(
- \ line('.') - 1, line('.') + 1)
+ \ call neocomplcache#sources#buffer_complete#caching_current_line()
augroup END"}}}
" Set rank.
@@ -114,7 +113,7 @@ endfunction"}}}
function! neocomplcache#sources#buffer_complete#caching_current_line() "{{{
" Current line caching.
- return s:caching_current_buffer(line('.') - 1, line('.') + 1)
+ return s:caching_current_buffer(line('.') - 5, line('.') + 5)
endfunction"}}}
function! s:caching_current_buffer(start, end) "{{{
" Current line caching.
View
2 autoload/neocomplcache/sources/member_complete.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: member_complete.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 16 Nov 2012.
+" Last Modified: 31 Dec 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
View
3 doc/neocomplcache.txt
@@ -1494,6 +1494,9 @@ Improve cache behavior in current buffer.
==============================================================================
CHANGELOG *neocomplcache-changelog*
+2012-12-31
+- Improved neocomplcache#sources#buffer_complete#caching_current_line().
+
2012-12-29
- Improved save foldinfo behavior.

0 comments on commit 9de0a6e

Please sign in to comment.