view src/testdir/test_eval_func.vim @ 17223:07bbe73b8e74 v8.1.1611

patch 8.1.1611: bufadd() reuses existing buffer without a name commit https://github.com/vim/vim/commit/892ae723ab95e429222e930cf41b32809567e58e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 30 20:33:01 2019 +0200 patch 8.1.1611: bufadd() reuses existing buffer without a name Problem: Bufadd() reuses existing buffer without a name. Solution: When the name is empty always create a new buffer.
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jun 2019 20:45:05 +0200
parents 63b02fcf1361
children
line wrap: on
line source

" Vim script used in test_eval.in.  Needed for script-local function.

func s:Testje()
  return "foo"
endfunc
let Bar = function('s:Testje')
$put ='s:Testje exists: ' . exists('s:Testje')
$put ='func s:Testje exists: ' . exists('*s:Testje')
$put ='Bar exists: ' . exists('Bar')
$put ='func Bar exists: ' . exists('*Bar')