mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: minor changes
This commit is contained in:
parent
77a7ca458b
commit
5a9d3be54c
@ -141,8 +141,7 @@ open_buffer (
|
|||||||
/* mark cursor position as being invalid */
|
/* mark cursor position as being invalid */
|
||||||
curwin->w_valid = 0;
|
curwin->w_valid = 0;
|
||||||
|
|
||||||
if (curbuf->b_ffname != NULL
|
if (curbuf->b_ffname != NULL) {
|
||||||
) {
|
|
||||||
int old_msg_silent = msg_silent;
|
int old_msg_silent = msg_silent;
|
||||||
if (shortmess(SHM_FILEINFO)) {
|
if (shortmess(SHM_FILEINFO)) {
|
||||||
msg_silent = 1;
|
msg_silent = 1;
|
||||||
@ -154,8 +153,9 @@ open_buffer (
|
|||||||
msg_silent = old_msg_silent;
|
msg_silent = old_msg_silent;
|
||||||
|
|
||||||
// Help buffer is filtered.
|
// Help buffer is filtered.
|
||||||
if (curbuf->b_help)
|
if (curbuf->b_help) {
|
||||||
fix_help_buffer();
|
fix_help_buffer();
|
||||||
|
}
|
||||||
} else if (read_stdin) {
|
} else if (read_stdin) {
|
||||||
int save_bin = curbuf->b_p_bin;
|
int save_bin = curbuf->b_p_bin;
|
||||||
linenr_T line_count;
|
linenr_T line_count;
|
||||||
|
@ -9,15 +9,14 @@ describe("'shortmess'", function()
|
|||||||
clear()
|
clear()
|
||||||
screen = Screen.new(25, 5)
|
screen = Screen.new(25, 5)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
execute('set shortmess&')
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
after_each(function()
|
after_each(function()
|
||||||
screen:detach()
|
screen:detach()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe("=F", function()
|
describe('"F" flag', function()
|
||||||
it(':hides messages about the files read', function()
|
it('hides messages about the files read', function()
|
||||||
execute('e test')
|
execute('e test')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
^ |
|
^ |
|
Loading…
Reference in New Issue
Block a user