Mercurial > vim
view src/testdir/test56.in @ 2137:dabcabce3f9d v7.2.419
updated for version 7.2.419
Problem: Memory leak in Motif when clicking on "Search Vim Help".
Solution: Free string returned by XmTextGetString(). (Dominique Pelle)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Thu, 13 May 2010 16:31:25 +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: