comparison src/testdir/test_popup.vim @ 13331:1ba4f926247c v8.0.1540

patch 8.0.1540: popup menu positioning fails with longer string commit https://github.com/vim/vim/commit/2b10bcbfc1c025bf7e6358326ee70105e7d30e96 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 24 21:25:44 2018 +0100 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 #2661)
author Christian Brabandt <cb@256bit.org>
date Sat, 24 Feb 2018 21:30:05 +0100
parents 424321d6eea7
children de69701e0592
comparison
equal deleted inserted replaced
13330:6f51f5408677 13331:1ba4f926247c
770 call term_sendkeys(buf, "\<Esc>u") 770 call term_sendkeys(buf, "\<Esc>u")
771 call term_sendkeys(buf, ":set pumwidth=30\<CR>") 771 call term_sendkeys(buf, ":set pumwidth=30\<CR>")
772 call term_sendkeys(buf, "GA\<C-N>") 772 call term_sendkeys(buf, "GA\<C-N>")
773 call VerifyScreenDump(buf, 'Test_popup_position_03', {'rows': 8}) 773 call VerifyScreenDump(buf, 'Test_popup_position_03', {'rows': 8})
774 774
775 " completed text wider than the window and 'pumwidth' smaller than available
776 " space
777 call term_sendkeys(buf, "\<Esc>u")
778 call term_sendkeys(buf, ":set pumwidth=20\<CR>")
779 call term_sendkeys(buf, "ggI123456789_\<Esc>")
780 call term_sendkeys(buf, "jI123456789_\<Esc>")
781 call term_sendkeys(buf, "GA\<C-N>")
782 call VerifyScreenDump(buf, 'Test_popup_position_04', {'rows': 10})
783
775 call term_sendkeys(buf, "\<Esc>u") 784 call term_sendkeys(buf, "\<Esc>u")
776 call StopVimInTerminal(buf) 785 call StopVimInTerminal(buf)
777 call delete('Xtest') 786 call delete('Xtest')
778 endfunc 787 endfunc
779 788