- Fixed column in select mode.
This commit is contained in:
parent
c2c75968d7
commit
fd9d2ea81a
@ -869,8 +869,15 @@ function! s:substitute_placeholder_marker(start, end, snippet_holder_cnt)"{{{
|
|||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! s:trigger(function)"{{{
|
function! s:trigger(function)"{{{
|
||||||
let cur_text = neocomplcache#get_cur_text(1)
|
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>",
|
return printf("\<ESC>:call %s(%s,%d)\<CR>",
|
||||||
\ a:function, string(cur_text), col('.'))
|
\ a:function, string(cur_text), col)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! s:eval_snippet(snippet_text)"{{{
|
function! s:eval_snippet(snippet_text)"{{{
|
||||||
let snip_word = ''
|
let snip_word = ''
|
||||||
|
@ -310,6 +310,7 @@ CHANGELOG *neocomplcache-snippets-complete-changelog*
|
|||||||
2012-09-23
|
2012-09-23
|
||||||
- Fixed substitute tab character.
|
- Fixed substitute tab character.
|
||||||
- Improved cursor position.
|
- Improved cursor position.
|
||||||
|
- Fixed column in select mode.
|
||||||
|
|
||||||
2012-09-06
|
2012-09-06
|
||||||
- Added neocomplcache__convertable attribute.
|
- Added neocomplcache__convertable attribute.
|
||||||
|
Loading…
Reference in New Issue
Block a user