summaryrefslogtreecommitdiff
path: root/usr.bin/vi/ex/ex_write.c
diff options
context:
space:
mode:
authormichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
committermichaels <michaels@cvs.openbsd.org>1996-08-16 17:58:49 +0000
commit418c0bbade1dcb322b7abdbed4064993de8086c2 (patch)
tree4bad4d39a1f432f68cae3d673074f4b724aba879 /usr.bin/vi/ex/ex_write.c
parent445816164da4c953591f89549fdd9bc8825aa8c8 (diff)
nvi 1.73
Diffstat (limited to 'usr.bin/vi/ex/ex_write.c')
-rw-r--r--usr.bin/vi/ex/ex_write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vi/ex/ex_write.c b/usr.bin/vi/ex/ex_write.c
index 5ab94480229..b3122e35356 100644
--- a/usr.bin/vi/ex/ex_write.c
+++ b/usr.bin/vi/ex/ex_write.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)ex_write.c 10.28 (Berkeley) 6/28/96";
+static const char sccsid[] = "@(#)ex_write.c 10.30 (Berkeley) 7/12/96";
#endif /* not lint */
#include <sys/types.h>
@@ -193,7 +193,7 @@ exwr(sp, cmdp, cmd)
}
/* Set the FS_ALL flag if we're writing the entire file. */
- if (cmdp->addr1.lno == 1 && !db_exist(sp, cmdp->addr2.lno + 1))
+ if (cmdp->addr1.lno <= 1 && !db_exist(sp, cmdp->addr2.lno + 1))
LF_SET(FS_ALL);
/* If "write >>" it's an append to a file. */
@@ -256,7 +256,7 @@ exwr(sp, cmdp, cmd)
F_SET(sp->frp, FR_NAMECHANGE | FR_EXNAMED);
/* Notify the screen. */
- (void)sp->gp->scr_rename(sp);
+ (void)sp->gp->scr_rename(sp, sp->frp->name, 1);
} else
set_alt_name(sp, name);
break;