diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-21 13:27:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-21 13:27:06 +0100 |
commit | 9ae862ebba4a8962cb1c6811a2a46656fa672599 (patch) | |
tree | 8d2ddb6a864414b159fedd0b00b3d10714891408 /src/testdir/test_popup.vim | |
parent | 202c3f7e3e5a90135ad37100fbfd6583c84a6c99 (diff) |
patch 8.1.2325: crash when using balloon with empty linev8.1.2325
Problem: Crash when using balloon with empty line.
Solution: Handle empty lines. (Markus Braun)
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 5b602cc12e..21bd22ade2 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -795,6 +795,12 @@ func Test_balloon_split() \ ' next = 123}', \ ], balloon_split( \ 'struct = 0x234 {long = 2343 "\\"some long string that will be wrapped in two\\"", next = 123}')) + call assert_equal([ + \ 'Some comment', + \ '', + \ 'typedef this that;', + \ ], balloon_split( + \ "Some comment\n\ntypedef this that;")) endfunc func Test_popup_position() |