mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess'
Problem: File info message not always suppressed with 'F' in 'shortmess'. (Asheq Imran) Solution: Save and restore msg_silent. (Christian Brabandt, closes #3221)
This commit is contained in:
@@ -414,3 +414,24 @@ func Test_shortmess_F()
|
||||
set shortmess&
|
||||
bwipe
|
||||
endfunc
|
||||
|
||||
func Test_shortmess_F2()
|
||||
e file1
|
||||
e file2
|
||||
call assert_match('file1', execute('bn', ''))
|
||||
call assert_match('file2', execute('bn', ''))
|
||||
set shortmess+=F
|
||||
call assert_true(empty(execute('bn', '')))
|
||||
call assert_true(empty(execute('bn', '')))
|
||||
set hidden
|
||||
call assert_true(empty(execute('bn', '')))
|
||||
call assert_true(empty(execute('bn', '')))
|
||||
set nohidden
|
||||
call assert_true(empty(execute('bn', '')))
|
||||
call assert_true(empty(execute('bn', '')))
|
||||
set shortmess&
|
||||
call assert_match('file1', execute('bn', ''))
|
||||
call assert_match('file2', execute('bn', ''))
|
||||
bwipe
|
||||
bwipe
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user