.Xr botch fix
[unix-history] / usr / src / usr.bin / window / wwend.c
index 4534aec..aa2db90 100644 (file)
@@ -1,14 +1,22 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Edward Wang at The University of California, Berkeley.
+ *
+ * %sccs.include.redist.c%
+ */
+
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)wwend.c    3.5 %G%";
-#endif
+static char sccsid[] = "@(#)wwend.c    3.15 (Berkeley) %G%";
+#endif /* not lint */
 
 #include "ww.h"
 #include "tt.h"
 
 wwend()
 {
 
 #include "ww.h"
 #include "tt.h"
 
 wwend()
 {
-       (*tt.tt_move)(tt.tt_nrow - 1, 0);
-       (*tt.tt_end)();
-       ttflush();
-       (void) wwsettty(0, &wwoldtty);
+       xxend();
+       (void) wwsettty(0, &wwoldtty, &wwnewtty);
 }
 }