Mercurial > vim
view src/testdir/test_balloon_gui.vim @ 24462:7c4f50c02e18 v8.2.2771
patch 8.2.2771: Vim9: assignment not recognized if declaration was skipped
Commit: https://github.com/vim/vim/commit/aa1959bd5e82350bb4a82d9a5188c29d70706ec4
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 15 22:13:39 2021 +0200
patch 8.2.2771: Vim9: assignment not recognized if declaration was skipped
Problem: Vim9: assignment not recognized if declaration was skipped.
Solution: Also recognized an assignment if the variable does not exist.
(closes #8108)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Apr 2021 22:15:03 +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