Mercurial > vim
view src/testdir/setup.vim @ 27841:5ce69c07a106 v8.2.4446
patch 8.2.4446: Vim9: cannot refer to a global function like a local one
Commit: https://github.com/vim/vim/commit/fe73255c92b6cb54851f82fa32458340b736298d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 22 19:39:13 2022 +0000
patch 8.2.4446: Vim9: cannot refer to a global function like a local one
Problem: Vim9: cannot refer to a global function like a local one.
Solution: When g:name is not a variable but a function, use a function
reference. (closes #9826)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Feb 2022 20:45:04 +0100 |
parents | 16647bd6372c |
children | ee50174810ac |
line wrap: on
line source
" Common preparations for running tests. " Only load this once. if 1 if exists('s:did_load') finish endif let s:did_load = 1 endif " Make sure 'runtimepath' and 'packpath' does not include $HOME. set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after if has('packages') let &packpath = &rtp endif " Only when the +eval feature is present. if 1 " Make sure the .Xauthority file can be found after changing $HOME. if $XAUTHORITY == '' let $XAUTHORITY = $HOME . '/.Xauthority' endif " Avoid storing shell history. let $HISTFILE = "" " Make sure $HOME does not get read or written. " It must exist, gnome tries to create $HOME/.gnome2 let $HOME = getcwd() . '/XfakeHOME' if !isdirectory($HOME) call mkdir($HOME) endif endif