changeset 770:f30c8ac7741c v7.0225

updated for version 7.0225
author vimboss
date Wed, 15 Mar 2006 23:07:59 +0000
parents 2f006d0864c1
children c0f1b710ce07
files src/ex_cmds.c src/ex_cmds.h
diffstat 2 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1813,12 +1813,9 @@ write_viminfo(file, forceit)
 	{
 #ifdef VMS
 	    /* fdopen() fails for some reason */
-	    if (fp_out == NULL)
-	    {
-		umask_save = umask(077);
-		fp_out = mch_fopen((char *)tempname, WRITEBIN);
-		(void)umask(umask_save);
-	    }
+	    umask_save = umask(077);
+	    fp_out = mch_fopen((char *)tempname, WRITEBIN);
+	    (void)umask(umask_save);
 #else
 	    int	fd;
 
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -906,7 +906,7 @@ EX(CMD_tabnext,		"tabnext",	ex_tabnext,
 EX(CMD_tabnew,		"tabnew",	ex_splitview,
 			BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
 EX(CMD_tabonly,		"tabonly",	ex_tabonly,
-			TRLBAR|CMDWIN),
+			BANG|TRLBAR|CMDWIN),
 EX(CMD_tabprevious,	"tabprevious",	ex_tabnext,
 			RANGE|NOTADR|COUNT|TRLBAR),
 EX(CMD_tabNext,		"tabNext",	ex_tabnext,