Mercurial > vim
view src/testdir/test_balloon_gui.vim @ 30779:9d2c4d49b006 v9.0.0724
patch 9.0.0724: closure in compiled function gets same variable in block
Commit: https://github.com/vim/vim/commit/a275f2cdcc4353e7653a69c7c818422db5da599d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 11 20:04:09 2022 +0100
patch 9.0.0724: closure in compiled function gets same variable in block
Problem: Closure in compiled function gets same variable in block.
Solution: At the end of a block to not always reset the variable count.
(issue #11094)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Oct 2022 21:15:04 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Tests for 'ballooneval' in the GUI. source check.vim CheckGui CheckFeature balloon_eval func Test_balloon_show_gui() let msg = 'this this this this' call balloon_show(msg) call assert_equal(msg, balloon_gettext()) sleep 10m call balloon_show('') let msg = 'that that' eval msg->balloon_show() call assert_equal(msg, balloon_gettext()) sleep 10m call balloon_show('') endfunc " vim: shiftwidth=2 sts=2 expandtab