- Fixed column in select mode.

This commit is contained in:
Shougo Matsushita 2012-09-23 14:30:02 +09:00
parent c2c75968d7
commit fd9d2ea81a
2 changed files with 9 additions and 1 deletions

View File

@ -869,8 +869,15 @@ function! s:substitute_placeholder_marker(start, end, snippet_holder_cnt)"{{{
endfunction"}}}
function! s:trigger(function)"{{{
let cur_text = neocomplcache#get_cur_text(1)
let col = col('.')
if mode() !=# 'i'
" Fix column.
let col += 2
endif
return printf("\<ESC>:call %s(%s,%d)\<CR>",
\ a:function, string(cur_text), col('.'))
\ a:function, string(cur_text), col)
endfunction"}}}
function! s:eval_snippet(snippet_text)"{{{
let snip_word = ''

View File

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