- Changed <Plug>(neocomplcache_snippets_expand) behavior.

This commit is contained in:
Shougo Matsushita 2012-09-01 10:50:22 +09:00
parent 878130bcf0
commit fcf3af4b46
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: snippets_complete.vim " FILE: snippets_complete.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 27 Aug 2012. " Last Modified: 01 Sep 2012.
" License: MIT license {{{ " License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining " Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the " a copy of this software and associated documentation files (the
@ -497,6 +497,13 @@ function! s:snippets_expand_or_jump(cur_text, col)"{{{
let cur_word = s:get_cursor_keyword_snippet( let cur_word = s:get_cursor_keyword_snippet(
\ neocomplcache#sources#snippets_complete#get_snippets(), \ neocomplcache#sources#snippets_complete#get_snippets(),
\ a:cur_text) \ a:cur_text)
if cur_word == ''
" Check by force_expand.
let cur_word = s:get_cursor_snippet(
\ neocomplcache#sources#snippets_complete#get_snippets(),
\ a:cur_text)
endif
if cur_word != '' if cur_word != ''
" Found snippet trigger. " Found snippet trigger.
call neocomplcache#sources#snippets_complete#expand( call neocomplcache#sources#snippets_complete#expand(

View File

@ -309,6 +309,9 @@ snippet *neocomplcache-snippets-complete-unite-action-snippet*
============================================================================== ==============================================================================
CHANGELOG *neocomplcache-snippets-complete-changelog* CHANGELOG *neocomplcache-snippets-complete-changelog*
2012-08-30
- Changed <Plug>(neocomplcache_snippets_expand) behavior.
2012-08-27 2012-08-27
- Fixed neocomplcache#sources#snippets_complete#force_expandable(). - Fixed neocomplcache#sources#snippets_complete#force_expandable().