1
0
forked from aniani/vim

patch 8.2.0314: short name not set for terminal buffer

Problem:    Short name not set for terminal buffer.
Solution:   Set the short name. (closes #5687)
This commit is contained in:
Bram Moolenaar 2020-02-24 21:37:54 +01:00
parent fa29c8abd6
commit e010c720b2
3 changed files with 10 additions and 0 deletions

View File

@ -566,6 +566,8 @@ term_start(
}
}
}
vim_free(curbuf->b_sfname);
curbuf->b_sfname = vim_strsave(curbuf->b_ffname);
curbuf->b_fname = curbuf->b_ffname;
if (opt->jo_term_opencmd != NULL)

View File

@ -2405,3 +2405,9 @@ func Test_issue_5607()
bw!
endtry
endfunc
func Test_hidden_terminal()
let buf = term_start(&shell, #{hidden: 1})
call assert_equal('', bufname('^$'))
call StopShellInTerminal(buf)
endfunc

View File

@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
314,
/**/
313,
/**/