annotate src/testdir/test56.in @ 8544:b4850f705181 v7.4.1562

commit https://github.com/vim/vim/commit/9eb3bb2930f804c1d428ea4527e136ac9cd9da43 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 14 23:45:35 2016 +0100 patch 7.4.1562 Problem: ":helptags ALL" crashes. (Lcd) Solution: Don't free twice.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Mar 2016 00:00:05 +0100
parents b63792dadc23
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
1 Test for script-local function. vim: set ft=vim :
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
2
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
3 STARTTEST
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
4 :so small.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
5 :"
959
ea15087a42cd updated for version 7.0-085
vimboss
parents: 271
diff changeset
6 :set nocp viminfo+=nviminfo
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
7 :/^start:/+1,/^end:/-1w! Xtest.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
8 :source Xtest.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
9 _x
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
10 :$-1,$wq! test.out
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
11 ENDTEST
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
12
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
13 start:
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
14 fun <SID>DoLast()
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
15 call append(line('$'), "last line")
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
16 endfun
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
17 fun s:DoNothing()
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
18 call append(line('$'), "nothing line")
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
19 endfun
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 959
diff changeset
20 nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr>
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
21 end: