Problem: :term without an argument uses empty buffer name but runs the
snell.
Solution: Change the command to the shell earlier.
term->tl_next = first_term;
first_term = term;
+ if (cmd == NULL || *cmd == NUL)
+ cmd = p_sh;
+
if (buflist_findname(cmd) == NULL)
curbuf->b_ffname = vim_strsave(cmd);
else
set_term_and_win_size(term);
- if (cmd == NULL || *cmd == NUL)
- cmd = p_sh;
-
/* System dependent: setup the vterm and start the job in it. */
if (term_and_job_init(term, term->tl_rows, term->tl_cols, cmd) == OK)
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 779,
/**/
778,
/**/