document distributed with 4.1BSD
[unix-history] / usr / src / usr.bin / ex / ex_cmds.c
index 8c8f9d5..ba0fd47 100644 (file)
@@ -1,9 +1,18 @@
-/* Copyright (c) 1980 Regents of the University of California */
-static char *sccsid = "@(#)ex_cmds.c   6.3 %G%";
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+static char *sccsid = "@(#)ex_cmds.c   7.10 (Berkeley) %G%";
+#endif not lint
+
 #include "ex.h"
 #include "ex_argv.h"
 #include "ex_temp.h"
 #include "ex_tty.h"
 #include "ex.h"
 #include "ex_argv.h"
 #include "ex_temp.h"
 #include "ex_tty.h"
+#include "ex_vis.h"
 
 bool   pflag, nflag;
 int    poffset;
 
 bool   pflag, nflag;
 int    poffset;
@@ -269,6 +278,11 @@ doecmd:
                        laste++;
                        sync();
                        rop(c);
                        laste++;
                        sync();
                        rop(c);
+#ifdef VMUNIX
+                       tlaste();
+#endif
+                       laste = 0;
+                       sync();
                        nochng();
                        continue;
 
                        nochng();
                        continue;
 
@@ -506,6 +520,10 @@ quit:
                                                rop3(c);
                                        if (dol != zero)
                                                change();
                                                rop3(c);
                                        if (dol != zero)
                                                change();
+#ifdef VMUNIX
+                                       tlaste();
+#endif
+                                       laste = 0;
                                        nochng();
                                        continue;
                                }
                                        nochng();
                                        continue;
                                }
@@ -654,7 +672,7 @@ suspend:
 /* version */
                                tail("version");
                                setNAEOL();
 /* version */
                                tail("version");
                                setNAEOL();
-                               printf("@(#) Version 3.6, %G%."+5);
+                               printf("@(#) Version 3.7, %G%."+5);
                                noonl();
                                continue;
 
                                noonl();
                                continue;