Source

frawor / test / rtp / plugin / wrapfunc-alter-winview.vim

ZyX_I 3f70121 
ZyX_I 9bef657 
ZyX_I 0ca46e0 









ZyX_I 73e175d 

ZyX_I 0ca46e0 




execute frawor#Setup('0.0', {'@/functions': '0.0',
            \     '@/decorators/altervars': '0.0'})
call setline('.', range(0, 10))
let winview=winsaveview()
function s:F.wrappedfunc(...)
    normal! G
    if g:winview !=# winsaveview()
        call WriteFile('notmatch')
    else
        call WriteFile('match')
    endif
endfunction
call s:_f.addextfunctions({'Function': {'function': s:F.wrappedfunc,
            \                         '@altervars': [['+winview']]}})
call Function()
if winview !=# winsaveview()
    call WriteFile('notmatch')
else
    call WriteFile('match')
endif