- Fixed expand target.

This commit is contained in:
Shougo Matsushita
2012-11-06 15:28:54 +09:00
parent 15cad9454d
commit df8767752e
4 changed files with 12 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
"=============================================================================
" FILE: snippet_target.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 02 Nov 2012.
" Last Modified: 06 Nov 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
@@ -97,8 +97,9 @@ function! s:source.action_table.select.func(candidate)"{{{
call cursor(0, getpos("'<")[2])
let col = col('.') < len(base_indent)+1 ? len(base_indent)+1 : col('.')
call neosnippet#expand(neosnippet#util#get_cur_text(),
\ col('.'), a:candidate.source__trigger)
\ col, a:candidate.source__trigger)
endfunction"}}}
"}}}