diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-28 00:46:40 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-29 18:34:05 -0500 |
| commit | e80f61020adfe6f2503c59cfea86f47fc6b0887d (patch) | |
| tree | db700d05ab647f34870c483953c47e6feee2e0db /src/nvim/testdir | |
| parent | 81a0d10f131ddea0bd5faa50e362deb97c0abb08 (diff) | |
| download | rneovim-e80f61020adfe6f2503c59cfea86f47fc6b0887d.tar.gz rneovim-e80f61020adfe6f2503c59cfea86f47fc6b0887d.tar.bz2 rneovim-e80f61020adfe6f2503c59cfea86f47fc6b0887d.zip | |
vim-patch:8.0.1540: popup menu positioning fails with longer string
Problem: Popup menu positioning fails with longer string.
Solution: Only align with right side of window when width is less than
'pumwidth' (closes vim/vim#2661)
https://github.com/vim/vim/commit/2b10bcbfc1c025bf7e6358326ee70105e7d30e96
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_popup.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index 27c90f9114..e5696f4cbb 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -784,6 +784,15 @@ func Test_popup_position() call term_sendkeys(buf, "GA\<C-N>") call VerifyScreenDump(buf, 'Test_popup_position_03', {'rows': 8}) + " completed text wider than the window and 'pumwidth' smaller than available + " space + call term_sendkeys(buf, "\<Esc>u") + call term_sendkeys(buf, ":set pumwidth=20\<CR>") + call term_sendkeys(buf, "ggI123456789_\<Esc>") + call term_sendkeys(buf, "jI123456789_\<Esc>") + call term_sendkeys(buf, "GA\<C-N>") + call VerifyScreenDump(buf, 'Test_popup_position_04', {'rows': 10}) + call term_sendkeys(buf, "\<Esc>u") call StopVimInTerminal(buf) call delete('Xtest') |