Re: [patch] Refactor code for putting ":tabnew" commands in session scripts

2019-01-22 Fir de Conversatie Bram Moolenaar
Jason Franklin wrote: > This patch just simplifies the code for outputting the > ":tabnew" commands that a session script should invoke. > Currently, the code is a bit messy and was easy to > simplify: > > > diff --git a/src/ex_docmd.c b/src/ex_docmd.c > index 8a9b2f4bf..91314ec2a 100644 > ---

Re: [patch] Refactor code for putting ":tabnew" commands in session scripts

2019-01-20 Fir de Conversatie Jason Franklin
> + FOR_ALL_TABPAGES(tp) > { > - tabpage_T *tp = find_tabpage(tabnr); > - > - if (tp == NULL) /* done all tab pages */ > - break; > - > - if (tabnr > 1 && put_line(fd, "tabnew") == FAIL) > + if (tp->tp_next != NULL && put_line(fd, "tabnew")

[patch] Refactor code for putting ":tabnew" commands in session scripts

2019-01-20 Fir de Conversatie Jason Franklin
This patch just simplifies the code for outputting the ":tabnew" commands that a session script should invoke. Currently, the code is a bit messy and was easy to simplify: diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 8a9b2f4bf..91314ec2a 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -