We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3662e8a commit 7b567e1Copy full SHA for 7b567e1
autoload/vsnip/session.vim
@@ -159,7 +159,7 @@ function! s:Session.move(jump_point) abort
159
call cursor(l:pos)
160
161
if mode()[0] !~# 'i'
162
- if l:pos[1] > strlen(getline(l:pos[0]))
+ if (getcurpos()[2] - 1) > strlen(getline(getcurpos()[1]))
163
call feedkeys('a', 'ni')
164
else
165
call feedkeys('i', 'ni')
spec/plugin/vsnip.vimspec
@@ -30,6 +30,7 @@ Describe vsnip
30
31
let g:vsnip_assert = {}
32
function g:vsnip_assert.step1()
33
+ call s:expect(getcurpos()[1 : 2]).to_equal([1, 8])
34
call s:expect(getbufline('%', '^', '$')).to_equal(['snippet'])
35
endfunction
36
call feedkeys("a\<C-j>\<Plug>(vsnip-assert)", 'x')
0 commit comments