]> granicus.if.org Git - vim/commit
patch 9.0.0294: crash when 'cmdheight' is 0 and popup_clear() used v9.0.0294
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2022 12:02:45 +0000 (13:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2022 12:02:45 +0000 (13:02 +0100)
commit43568648dfefe5796dc3fe8fe711135eb20d9eb6
tree59d27e3974535207bc9b21a32ec8dc777f40fd9c
parentb0509c542ed974cb388d49273d365ff2daf43159
patch 9.0.0294: crash when 'cmdheight' is 0 and popup_clear() used

Problem:    Crash when 'cmdheight' is 0 and popup_clear() used.
Solution:   Reset "message_win" when the message popup is cleared.  Close the
            popup when 'cmdheight' is non-zero.  Add a screendump test.
src/popupwin.c
src/proto/popupwin.pro
src/testdir/dumps/Test_cmdheight_zero_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_cmdheight_zero_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_cmdheight_zero_3.dump [new file with mode: 0644]
src/testdir/test_messages.vim
src/version.c
src/window.c