- Improved cursor position.

This commit is contained in:
Shougo Matsushita 2012-09-23 13:48:35 +09:00
parent 20eedd2741
commit d321e4f1c9
2 changed files with 6 additions and 0 deletions

View File

@ -459,6 +459,11 @@ function! s:load_snippets(snippet, snippets_file)"{{{
let linenr += 1 let linenr += 1
endfor endfor
if snippet_pattern.word !~ '\\\@<!${0}'
" Add placeholder.
let snippet_pattern.word .= '${0}'
endif
" Set previous snippet. " Set previous snippet.
call s:set_snippet_dict(snippet_pattern, call s:set_snippet_dict(snippet_pattern,
\ a:snippet, dup_check, a:snippets_file) \ a:snippet, dup_check, a:snippets_file)

View File

@ -309,6 +309,7 @@ CHANGELOG *neocomplcache-snippets-complete-changelog*
2012-09-23 2012-09-23
- Fixed substitute tab character. - Fixed substitute tab character.
- Improved cursor position.
2012-09-06 2012-09-06
- Added neocomplcache__convertable attribute. - Added neocomplcache__convertable attribute.