diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-12 09:52:23 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-12 14:07:16 -0500 |
| commit | 7bbe8a4900fc2b25784a732ec414b0cfd0c20780 (patch) | |
| tree | 418e29c8a9921f33b60a60da1764d715ca008c58 /src/nvim/testdir | |
| parent | 257c0f89a926b76a6a8d95ea8bd45a707a47bbb4 (diff) | |
| download | rneovim-7bbe8a4900fc2b25784a732ec414b0cfd0c20780.tar.gz rneovim-7bbe8a4900fc2b25784a732ec414b0cfd0c20780.tar.bz2 rneovim-7bbe8a4900fc2b25784a732ec414b0cfd0c20780.zip | |
vim-patch:8.2.2130: Insert mode completion messages end up in message history
Problem: Insert mode completion messages end up in message history.
Solution: Set msg_hist_off. (closes vim/vim#7452
https://github.com/vim/vim/commit/cc2335896ba707bf0d8cf03cca2de7c66fab62a0
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 6fe1d29434..9435931d41 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -280,7 +280,7 @@ func Test_omni_dash() set omnifunc=Omni new exe "normal Gofind -\<C-x>\<C-o>" - call assert_equal("\n-\nmatch 1 of 2", execute(':2mess')) + call assert_equal("find -help", getline('$')) bwipe! delfunc Omni @@ -468,3 +468,17 @@ func Test_pum_with_folds_two_tabs() call StopVimInTerminal(buf) call delete('Xpumscript') endfunc + +" Test to ensure 'Scanning...' messages are not recorded in messages history +func Test_z1_complete_no_history() + new + messages clear + let currmess = execute('messages') + setlocal dictionary=README.txt + exe "normal owh\<C-X>\<C-K>" + exe "normal owh\<C-N>" + call assert_equal(currmess, execute('messages')) + close! +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |