mirror of https://github.com/neovim/neovim.git
added the test for #27508 and remove an uncessary printf
This commit is contained in:
parent
a1b37ebc75
commit
c787a2d2b3
|
@ -1853,7 +1853,6 @@ buf_T *buflist_new(char *ffname_arg, char *sfname_arg, linenr_T lnum, int flags)
|
|||
char *ffname = ffname_arg;
|
||||
char *sfname = sfname_arg;
|
||||
buf_T *buf;
|
||||
printf("buflist_new\n");
|
||||
|
||||
fname_expand(curbuf, &ffname, &sfname); // will allocate ffname
|
||||
|
||||
|
|
|
@ -338,6 +338,28 @@ describe(':terminal buffer', function()
|
|||
eq(termbuf, eval('g:termbuf'))
|
||||
end)
|
||||
|
||||
it('deletes the current buffer when bufhidden=delete #27508', function()
|
||||
local screen = Screen.new(50, 4)
|
||||
screen:attach()
|
||||
-- open a terminal buffer
|
||||
command('terminal ls')
|
||||
-- set bufhidden = delete
|
||||
command('set bufhidden=delete')
|
||||
-- open a new buffer
|
||||
command('enew')
|
||||
-- get the buffer list
|
||||
command('ls')
|
||||
-- verify the termnal buffer does not appear in the buffer list
|
||||
screen:expect({
|
||||
grid = [[
|
||||
|*2
|
||||
0 %h "[No Name]" line 1 |
|
||||
Press ENTER or type command to continue^ |
|
||||
]],
|
||||
attr_ids = {},
|
||||
})
|
||||
end)
|
||||
|
||||
it('TermReqeust synchronization #27572', function()
|
||||
command('autocmd! nvim_terminal TermRequest')
|
||||
local term = exec_lua([[
|
||||
|
|
Loading…
Reference in New Issue