delete decryption for the foreign sites
[unix-history] / usr / src / usr.bin / ex / ex_vmain.c
index a998008..e739bc4 100644 (file)
@@ -1,5 +1,13 @@
-/* Copyright (c) 1981 Regents of the University of California */
-static char *sccsid = "@(#)ex_vmain.c  7.4     %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_vmain.c  7.7 (Berkeley) %G%";
+#endif not lint
+
 #include "ex.h"
 #include "ex_tty.h"
 #include "ex_vis.h"
 #include "ex.h"
 #include "ex_tty.h"
 #include "ex_vis.h"
@@ -419,7 +427,7 @@ reread:
                case CTRL(b):
                        vsave();
                        if (one + vcline != dot && vcnt > 2) {
                case CTRL(b):
                        vsave();
                        if (one + vcline != dot && vcnt > 2) {
-                               addr = dot - vcline + 2 + (cnt-1)*basWLINES;
+                               addr = dot - vcline + 2 - (cnt-1)*basWLINES;
                                forbid (addr <= zero);
                                dot = addr;
                                vcnt = vcline = 0;
                                forbid (addr <= zero);
                                dot = addr;
                                vcnt = vcline = 0;