diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-12-09 02:40:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-09 02:40:50 +0800 |
| commit | 9b2c79034416c9a1b105f796b761a0d4a2a06ea1 (patch) | |
| tree | 8bc81c14c9a7168febaba15cf7b194b94769d3a7 /src/nvim/testdir | |
| parent | 9b14ad5fd9e15718aa938f7a426dddcc2edab4e3 (diff) | |
| parent | 95c655fedcb2c3a6fd6250b0174d1b62f9a9c099 (diff) | |
| download | rneovim-9b2c79034416c9a1b105f796b761a0d4a2a06ea1.tar.gz rneovim-9b2c79034416c9a1b105f796b761a0d4a2a06ea1.tar.bz2 rneovim-9b2c79034416c9a1b105f796b761a0d4a2a06ea1.zip | |
Merge pull request #21338 from zeertzjq/vim-9.0.1030
vim-patch:9.0.{1030,1032}: using freed memory with the cmdline popup menu
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 218a2143e8..d09c9e2171 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -2281,6 +2281,23 @@ func Test_wildmenu_pum() call delete('Xdir', 'rf') endfunc +func Test_wildmenu_pum_clear_entries() + CheckRunVimInTerminal + + " This was using freed memory. Run in a terminal to get the pum to update. + let lines =<< trim END + set wildoptions=pum + set wildchar=<C-E> + END + call writefile(lines, 'XwildmenuTest', 'D') + let buf = RunVimInTerminal('-S XwildmenuTest', #{rows: 10}) + + call term_sendkeys(buf, ":\<C-E>\<C-E>") + call VerifyScreenDump(buf, 'Test_wildmenu_pum_clear_entries_1', {}) + + set wildoptions& wildchar& +endfunc + " this was going over the end of IObuff func Test_report_error_with_composing() let caught = 'no' |