comparison src/testdir/test_options.vim @ 16664:ca1814eeecf5 v8.1.1334

patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not used commit https://github.com/vim/vim/commit/eda652215abf696f86b872888945a2d2dd8c7192 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 16 20:29:44 2019 +0200 patch 8.1.1334: when buffer is hidden "F" in 'shortmess' is not used Problem: When buffer is hidden "F" in 'shortmess' is not used. Solution: Check the "F" flag in 'shortmess' when the buffer is already loaded. (Jason Franklin) Add test_getvalue() to be able to test this.
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 May 2019 20:30:07 +0200
parents d302c496e98b
children 19ca17f9e155
comparison
equal deleted inserted replaced
16663:66ffbbee468c 16664:ca1814eeecf5
468 e file2 468 e file2
469 call assert_match('file1', execute('bn', '')) 469 call assert_match('file1', execute('bn', ''))
470 call assert_match('file2', execute('bn', '')) 470 call assert_match('file2', execute('bn', ''))
471 set shortmess+=F 471 set shortmess+=F
472 call assert_true(empty(execute('bn', ''))) 472 call assert_true(empty(execute('bn', '')))
473 call assert_false(test_getvalue('need_fileinfo'))
473 call assert_true(empty(execute('bn', ''))) 474 call assert_true(empty(execute('bn', '')))
475 call assert_false(test_getvalue('need_fileinfo'))
474 set hidden 476 set hidden
475 call assert_true(empty(execute('bn', ''))) 477 call assert_true(empty(execute('bn', '')))
478 call assert_false(test_getvalue('need_fileinfo'))
476 call assert_true(empty(execute('bn', ''))) 479 call assert_true(empty(execute('bn', '')))
480 call assert_false(test_getvalue('need_fileinfo'))
477 set nohidden 481 set nohidden
478 call assert_true(empty(execute('bn', ''))) 482 call assert_true(empty(execute('bn', '')))
483 call assert_false(test_getvalue('need_fileinfo'))
479 call assert_true(empty(execute('bn', ''))) 484 call assert_true(empty(execute('bn', '')))
485 call assert_false(test_getvalue('need_fileinfo'))
480 set shortmess& 486 set shortmess&
481 call assert_match('file1', execute('bn', '')) 487 call assert_match('file1', execute('bn', ''))
482 call assert_match('file2', execute('bn', '')) 488 call assert_match('file2', execute('bn', ''))
483 bwipe 489 bwipe
484 bwipe 490 bwipe