diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-12 13:32:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-12 13:32:07 +0100 |
commit | cc2335896ba707bf0d8cf03cca2de7c66fab62a0 (patch) | |
tree | 152b336bb2486e6f299e53b325cade4b99fe1388 /src/testdir/test_ins_complete.vim | |
parent | 0ea7421ae6618fe8efe9e3afc8fdcf7a4d89739a (diff) |
patch 8.2.2130: Insert mode completion messages end up in message historyv8.2.2130
Problem: Insert mode completion messages end up in message history.
Solution: Set msg_hist_off. (closes #7452
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r-- | src/testdir/test_ins_complete.vim | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index 5e2bebbf54..b1a2a9e307 100644 --- 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 |