Mercurial > vim
diff src/testdir/test_ins_complete.vim @ 23169:5e6855ebc4ea v8.2.2130
patch 8.2.2130: Insert mode completion messages end up in message history
Commit: https://github.com/vim/vim/commit/cc2335896ba707bf0d8cf03cca2de7c66fab62a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 12 13:32:07 2020 +0100
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 https://github.com/vim/vim/issues/7452
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Dec 2020 13:45:04 +0100 |
parents | bd61aaf7f2a0 |
children | 93f90f2ff4e9 |
line wrap: on
line diff
--- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -114,7 +114,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 @@ -714,4 +714,16 @@ func Test_issue_7021() set completeslash= 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