- Deleted neosnippet#force_expandable().

This commit is contained in:
Shougo Matsushita 2012-10-01 10:26:09 +09:00
parent 3378bf8652
commit f64bb1d55a
2 changed files with 10 additions and 9 deletions

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: neosnippet.vim " FILE: neosnippet.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 30 Sep 2012. " Last Modified: 01 Oct 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
@ -149,23 +149,21 @@ endfunction"}}}
function! neosnippet#expandable()"{{{ function! neosnippet#expandable()"{{{
let ret = 0 let ret = 0
if neosnippet#force_expandable() let snippets = neosnippet#get_snippets()
let cur_text = neosnippet#util#get_cur_text()
" Check snippet trigger.
if s:get_cursor_snippet(snippets, cur_text) != ''
let ret += 1 let ret += 1
endif endif
" Check jumpable.
if neosnippet#jumpable() if neosnippet#jumpable()
let ret += 2 let ret += 2
endif endif
return ret return ret
endfunction"}}} endfunction"}}}
function! neosnippet#force_expandable()"{{{
let snippets = neosnippet#get_snippets()
let cur_text = neosnippet#util#get_cur_text()
" Found snippet trigger.
return s:get_cursor_snippet(snippets, cur_text) != ''
endfunction"}}}
function! neosnippet#jumpable()"{{{ function! neosnippet#jumpable()"{{{
" Found snippet placeholder. " Found snippet placeholder.
return search(s:get_placeholder_marker_pattern(). '\|' return search(s:get_placeholder_marker_pattern(). '\|'

View File

@ -390,6 +390,9 @@ snippet *neosnippet-unite-action-snippet*
============================================================================== ==============================================================================
CHANGELOG *neosnippet-changelog* CHANGELOG *neosnippet-changelog*
2012-10-01
- Deleted neosnippet#force_expandable().
2012-09-30 2012-09-30
- Changed runtime directory. - Changed runtime directory.
- Vitalized. - Vitalized.