Mercurial > vim
view src/testdir/test_balloon_gui.vim @ 34892:58416c1d1b94 v9.1.0309
patch 9.1.0309: crash when 'textwidth' > MAX_INT
Commit: https://github.com/vim/vim/commit/bba79808cb115d4f54063e8aa40628a927eab44e
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Apr 11 22:54:44 2024 +0200
patch 9.1.0309: crash when 'textwidth' > MAX_INT
Problem: crash when 'textwidth' > MAX_INT (after vv9.1.0055)
(Zoltan Balogh)
Solution: limit textwidth to MAX_INT
fixes: #14482
closes: #14489
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 11 Apr 2024 23: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