view src/testdir/test56.in @ 11858:042e634bb8d9 v8.0.0809

patch 8.0.0809: MS-Windows: tests hang commit https://github.com/vim/vim/commit/30fe88677dd2b16e733ca0ac14edc8d70c7259fc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 29 23:01:57 2017 +0200 patch 8.0.0809: MS-Windows: tests hang Problem: MS-Windows: tests hang. Solution: Delete the XfakeHOME directory.
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Jul 2017 23:15:04 +0200
parents b63792dadc23
children
line wrap: on
line source

Test for script-local function.     vim: set ft=vim :

STARTTEST
:so small.vim
:"
:set nocp viminfo+=nviminfo
:/^start:/+1,/^end:/-1w! Xtest.vim
:source Xtest.vim
_x
:$-1,$wq! test.out
ENDTEST

start:
fun <SID>DoLast()
  call append(line('$'), "last line")
endfun
fun s:DoNothing()
  call append(line('$'), "nothing line")
endfun
nnoremap <buffer> _x	:call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr>
end: