Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 17037:9297877074a3 v8.1.1518
patch 8.1.1518: crash when setting 'columns' while a popup is visible
commit https://github.com/vim/vim/commit/202d982b36d87cf91d992bd7e30d3223bdc72cd9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 11 21:56:30 2019 +0200
patch 8.1.1518: crash when setting 'columns' while a popup is visible
Problem: Crash when setting 'columns' while a popup is visible.
Solution: Recompute all positions when clearing the screen. (closes https://github.com/vim/vim/issues/4467)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Jun 2019 22:00:07 +0200 |
parents | 905e1b154058 |
children | d99805d25b42 |
comparison
equal
deleted
inserted
replaced
17036:235cbf491430 | 17037:9297877074a3 |
---|---|
38 call VerifyScreenDump(buf, 'Test_popupwin_03', {}) | 38 call VerifyScreenDump(buf, 'Test_popupwin_03', {}) |
39 | 39 |
40 " close that tabpage | 40 " close that tabpage |
41 call term_sendkeys(buf, ":quit!\<CR>") | 41 call term_sendkeys(buf, ":quit!\<CR>") |
42 call VerifyScreenDump(buf, 'Test_popupwin_04', {}) | 42 call VerifyScreenDump(buf, 'Test_popupwin_04', {}) |
43 | |
44 " set 'columns' to a small value, size must be recomputed | |
45 call term_sendkeys(buf, ":let cols = &columns\<CR>") | |
46 call term_sendkeys(buf, ":set columns=12\<CR>") | |
47 call VerifyScreenDump(buf, 'Test_popupwin_04a', {}) | |
48 call term_sendkeys(buf, ":let &columns = cols\<CR>") | |
43 | 49 |
44 " resize popup, show empty line at bottom | 50 " resize popup, show empty line at bottom |
45 call term_sendkeys(buf, ":call popup_move(popupwin, {'minwidth': 15, 'maxwidth': 25, 'minheight': 3, 'maxheight': 5})\<CR>") | 51 call term_sendkeys(buf, ":call popup_move(popupwin, {'minwidth': 15, 'maxwidth': 25, 'minheight': 3, 'maxheight': 5})\<CR>") |
46 call term_sendkeys(buf, ":redraw\<CR>") | 52 call term_sendkeys(buf, ":redraw\<CR>") |
47 call VerifyScreenDump(buf, 'Test_popupwin_05', {}) | 53 call VerifyScreenDump(buf, 'Test_popupwin_05', {}) |