Mercurial > vim
comparison src/testdir/test_popup.vim @ 18667:de350001150c v8.1.2325
patch 8.1.2325: crash when using balloon with empty line
Commit: https://github.com/vim/vim/commit/9ae862ebba4a8962cb1c6811a2a46656fa672599
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 21 13:27:06 2019 +0100
patch 8.1.2325: crash when using balloon with empty line
Problem: Crash when using balloon with empty line.
Solution: Handle empty lines. (Markus Braun)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Nov 2019 13:30:03 +0100 |
parents | f71ee7b04f0b |
children | 068337e86133 |
comparison
equal
deleted
inserted
replaced
18666:d451a92c772c | 18667:de350001150c |
---|---|
793 \ ' long = 2343 "\\"some long string that will be wr', | 793 \ ' long = 2343 "\\"some long string that will be wr', |
794 \ 'apped in two\\"",', | 794 \ 'apped in two\\"",', |
795 \ ' next = 123}', | 795 \ ' next = 123}', |
796 \ ], balloon_split( | 796 \ ], balloon_split( |
797 \ 'struct = 0x234 {long = 2343 "\\"some long string that will be wrapped in two\\"", next = 123}')) | 797 \ 'struct = 0x234 {long = 2343 "\\"some long string that will be wrapped in two\\"", next = 123}')) |
798 call assert_equal([ | |
799 \ 'Some comment', | |
800 \ '', | |
801 \ 'typedef this that;', | |
802 \ ], balloon_split( | |
803 \ "Some comment\n\ntypedef this that;")) | |
798 endfunc | 804 endfunc |
799 | 805 |
800 func Test_popup_position() | 806 func Test_popup_position() |
801 if !CanRunVimInTerminal() | 807 if !CanRunVimInTerminal() |
802 throw 'Skipped: cannot make screendumps' | 808 throw 'Skipped: cannot make screendumps' |