Mercurial > vim
view src/testdir/test_eval_func.vim @ 16770:09c81f17f83c v8.1.1387
patch 8.1.1387: calling prop_add() in an empty buffer doesn't work
commit https://github.com/vim/vim/commit/d79eef2eb1f24b53206c4e55b80a4634f548c429
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 24 20:41:55 2019 +0200
patch 8.1.1387: calling prop_add() in an empty buffer doesn't work
Problem: Calling prop_add() in an empty buffer doesn't work. (Dominique
Pelle)
Solution: Open the memline before adding a text property. (closes #4412)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 May 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')