Problem: Short name not set for terminal buffer.
Solution: Set the short name. (closes #5687)
}
}
}
+ 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)
bw!
endtry
endfunc
+
+func Test_hidden_terminal()
+ let buf = term_start(&shell, #{hidden: 1})
+ call assert_equal('', bufname('^$'))
+ call StopShellInTerminal(buf)
+endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 314,
/**/
313,
/**/