view src/testdir/test_balloon_gui.vim @ 27678:1646525507aa v8.2.4365

patch 8.2.4365: sticky command modifiers are too sticky Commit: https://github.com/vim/vim/commit/cdf04859699bdde891b5b52ea821d0bebd7e8ee0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 12 22:13:06 2022 +0000 patch 8.2.4365: sticky command modifiers are too sticky Problem: sticky command modifiers are too sticky. Solution: Do not apply command modifiers to a called function. (closes https://github.com/vim/vim/issues/9751)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Feb 2022 23:15:03 +0100
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