We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b2fa35 commit 7ae2b17Copy full SHA for 7ae2b17
test/node_position/test_position.vim
@@ -22,7 +22,6 @@ function! s:run()
22
let toplevel = p.parse(r)
23
let func = toplevel.body[0]
24
let body = s:extract_body(func, src)
25
- echom string(split(body, "\n"))
26
call writefile(split(body, "\n"), 'test/node_position/test_position.out')
27
qall!
28
endfunction
@@ -35,8 +34,7 @@ function! s:extract_body(func, src)
35
34
36
let endpos = a:func.endfunction.pos
37
let endfunc = a:func.endfunction.ea
38
- let cmdlen = endfunc.argpos.i - endfunc.cmdpos.i
39
- let endpos.i += cmdlen
+ let cmdlen = endfunc.argpos.offset - endfunc.cmdpos.offset
40
let endpos.offset += cmdlen
41
42
return join(a:src, "\n")[pos.offset : endpos.offset]
0 commit comments