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:
parent
fa29c8abd6
commit
e010c720b2
@ -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)
|
||||
|
@ -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
|
||||
|
@ -738,6 +738,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
314,
|
||||
/**/
|
||||
313,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user