summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_popup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-26 16:53:16 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-26 16:53:16 +0100
commita3571ebef5a2969d16e3e202ec4bca8858aca6ba (patch)
treee3fa434b1f473c4fd5d1167ee0ff4a343eae1c2e /src/testdir/test_popup.vim
parentc41838aa01ef99540e2737c42e9b1283e3da5e26 (diff)
patch 8.0.1346: crash when passing 50 char string to balloon_split()v8.0.1346
Problem: Crash when passing 50 char string to balloon_split(). Solution: Fix off-by-one error.
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r--src/testdir/test_popup.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim
index 2bb9b32c49..6250c1b8f2 100644
--- a/src/testdir/test_popup.vim
+++ b/src/testdir/test_popup.vim
@@ -708,6 +708,10 @@ func Test_balloon_split()
return
endif
call assert_equal([
+ \ 'tempname: 0x555555e380a0 "/home/mool/.viminfz.tmp"',
+ \ ], balloon_split(
+ \ 'tempname: 0x555555e380a0 "/home/mool/.viminfz.tmp"'))
+ call assert_equal([
\ 'one two three four one two three four one two thre',
\ 'e four',
\ ], balloon_split(