Mercurial > vim
view src/testdir/test75.in @ 5378:8336fd924e05 v7.4.040
updated for version 7.4.040
Problem: Valgrind error on exit when a script-local variable holds a
reference to the scope of another script.
Solution: First clear all variables, then free the scopes. (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 Sep 2013 21:00:28 +0200 |
parents | 1cf89d38aa76 |
children | 733193bf24c3 |
line wrap: on
line source
" Tests for functions. STARTTEST :so small.vim :set cpo-=< :" Test maparg() with a string result :map foo<C-V> is<F4>foo :vnoremap <script> <buffer> <expr> <silent> bar isbar :call append('$', maparg('foo<C-V>')) :call append('$', string(maparg('foo<C-V>', '', 0, 1))) :call append('$', string(maparg('bar', '', 0, 1))) :map <buffer> <nowait> foo bar :call append('$', string(maparg('foo', '', 0, 1))) :" :map abc x<char-114>x :call append('$', maparg('abc')) :map abc y<S-char-114>y :call append('$', maparg('abc')) :" :/^eof/+1,$w! test.out :qa! ENDTEST eof