changeset 2276:ebabd8a8b714 vim73

Fix that :mksession may generate "2argu" even though there is no such argument. (Peter Odding)
author Bram Moolenaar <bram@vim.org>
date Sat, 26 Jun 2010 05:25:54 +0200
parents e4d849f4df03
children f42e0b5ff9e9
files src/ex_docmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -10430,7 +10430,7 @@ put_view(fd, wp, add_edit, flagp, curren
 
     /* Only when part of a session: restore the argument index.  Some
      * arguments may have been deleted, check if the index is valid. */
-    if (wp->w_arg_idx != current_arg_idx && wp->w_arg_idx <= WARGCOUNT(wp)
+    if (wp->w_arg_idx != current_arg_idx && wp->w_arg_idx < WARGCOUNT(wp)
 						      && flagp == &ssop_flags)
     {
 	if (fprintf(fd, "%ldargu", (long)wp->w_arg_idx + 1) < 0