- Fixed expand target.
This commit is contained in:
@@ -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"}}}
|
||||
"}}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user