vim-patch:8.2.0966: 'shortmess' flag "n" not used in two places

Problem:    'shortmess' flag "n" not used in two places.
Solution:   Make use of the "n" flag consistent. (Nick Jensen, closes vim/vim#6245,
            closes vim/vim#6244)
722e505d1a
This commit is contained in:
Jan Edmund Lazo
2020-06-12 20:26:04 -04:00
parent abadb687fb
commit 3c9ec83395
5 changed files with 45 additions and 38 deletions

View File

@@ -462,7 +462,7 @@ describe('confirm()', function()
-- With shortmess-=F
command('set shortmess-=F')
feed(':edit foo<cr>')
check_and_clear('"foo" [New File] |\n')
check_and_clear('"foo" [New] |\n')
-- With shortmess+=F
command('set shortmess+=F')

View File

@@ -31,7 +31,7 @@ describe(":drop", function()
{0:~ }|
{0:~ }|
{1:tmp1.vim }|
"tmp1.vim" [New File] |
"tmp1.vim" [New] |
]])
end)
@@ -70,7 +70,7 @@ describe(":drop", function()
{0:~ }{2:│}{0:~ }|
{0:~ }{2:│}{0:~ }|
{2:tmp2 [+] tmp1 }|
"tmp3" [New File] |
"tmp3" [New] |
]])
end)

View File

@@ -25,7 +25,7 @@ describe("'shortmess'", function()
~ |
~ |
~ |
"foo" [New File] |
"foo" [New] |
]])
eq(1, eval('bufnr("%")'))
@@ -50,7 +50,7 @@ describe("'shortmess'", function()
~ |
~ |
~ |
"foo" [New File] |
"foo" [New] |
]])
eq(1, eval('bufnr("%")'))
feed(':edit bar<CR>')
@@ -59,7 +59,7 @@ describe("'shortmess'", function()
~ |
~ |
~ |
"bar" [New File] |
"bar" [New] |
]])
eq(2, eval('bufnr("%")'))
feed(':bprevious<CR>')
@@ -68,7 +68,7 @@ describe("'shortmess'", function()
~ |
~ |
~ |
"foo" [New file] --No lines in buffer-- |
"foo" [New] --No lines in buffer-- |
]])
eq(1, eval('bufnr("%")'))