Mercurial > vim
comparison src/testdir/test_options.vim @ 14593:b6b2f7d69c7f v8.1.0310
patch 8.1.0310: file info msg not always suppressed with 'F' in 'shortmess'
commit https://github.com/vim/vim/commit/2f0f871159b2cba862fcd41edab65b17da75c422
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 21 18:50:18 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 21 Aug 2018 19:00:06 +0200 |
parents | a28fb81c9ecf |
children | 56ceaa0ad239 |
comparison
equal
deleted
inserted
replaced
14592:304b849109ac | 14593:b6b2f7d69c7f |
---|---|
412 call assert_match('bar', execute('file bar')) | 412 call assert_match('bar', execute('file bar')) |
413 call assert_match('bar', execute('file')) | 413 call assert_match('bar', execute('file')) |
414 set shortmess& | 414 set shortmess& |
415 bwipe | 415 bwipe |
416 endfunc | 416 endfunc |
417 | |
418 func Test_shortmess_F2() | |
419 e file1 | |
420 e file2 | |
421 call assert_match('file1', execute('bn', '')) | |
422 call assert_match('file2', execute('bn', '')) | |
423 set shortmess+=F | |
424 call assert_true(empty(execute('bn', ''))) | |
425 call assert_true(empty(execute('bn', ''))) | |
426 set hidden | |
427 call assert_true(empty(execute('bn', ''))) | |
428 call assert_true(empty(execute('bn', ''))) | |
429 set nohidden | |
430 call assert_true(empty(execute('bn', ''))) | |
431 call assert_true(empty(execute('bn', ''))) | |
432 set shortmess& | |
433 call assert_match('file1', execute('bn', '')) | |
434 call assert_match('file2', execute('bn', '')) | |
435 bwipe | |
436 bwipe | |
437 endfunc |