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

View File

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