Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
23168:56ca83d325b5 | 23169:5e6855ebc4ea |
---|---|
112 endif | 112 endif |
113 endfunc | 113 endfunc |
114 set omnifunc=Omni | 114 set omnifunc=Omni |
115 new | 115 new |
116 exe "normal Gofind -\<C-x>\<C-o>" | 116 exe "normal Gofind -\<C-x>\<C-o>" |
117 call assert_equal("\n-\nmatch 1 of 2", execute(':2mess')) | 117 call assert_equal("find -help", getline('$')) |
118 | 118 |
119 bwipe! | 119 bwipe! |
120 delfunc Omni | 120 delfunc Omni |
121 set omnifunc= | 121 set omnifunc= |
122 endfunc | 122 endfunc |
712 | 712 |
713 let &shellslash = orig_shellslash | 713 let &shellslash = orig_shellslash |
714 set completeslash= | 714 set completeslash= |
715 endfunc | 715 endfunc |
716 | 716 |
717 " Test to ensure 'Scanning...' messages are not recorded in messages history | |
718 func Test_z1_complete_no_history() | |
719 new | |
720 messages clear | |
721 let currmess = execute('messages') | |
722 setlocal dictionary=README.txt | |
723 exe "normal owh\<C-X>\<C-K>" | |
724 exe "normal owh\<C-N>" | |
725 call assert_equal(currmess, execute('messages')) | |
726 close! | |
727 endfunc | |
728 | |
717 " vim: shiftwidth=2 sts=2 expandtab | 729 " vim: shiftwidth=2 sts=2 expandtab |