Skip to content
Browse files

Fix that :mksession may generate "2argu" even though there is no such

argument. (Peter Odding)

--HG--
branch : vim73
  • Loading branch information...
1 parent b65daa2 commit 04747b2311a53e7f415cf444f37a6c048b54807c @brammool brammool committed Jun 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ex_docmd.c
View
2 src/ex_docmd.c
@@ -10430,7 +10430,7 @@ put_view(fd, wp, add_edit, flagp, current_arg_idx)
/* 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

0 comments on commit 04747b2

Please sign in to comment.
Something went wrong with that request. Please try again.