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
> ---
> + 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")
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
@@ -