release 3.4, June 24, 1980
[unix-history] / usr / src / usr.bin / ex / ex_vadj.c
index 7837339..b0d9e1e 100644 (file)
@@ -115,7 +115,15 @@ vreopen(p, lineno, l)
         *              necessary to determine which way to go.
         */
        vigoto(p, 0);
         *              necessary to determine which way to go.
         */
        vigoto(p, 0);
+#ifdef TRACE
+       if (trace)
+               fprintf(trace, "before pline in vreopen\n");
+#endif
        pline(lineno);
        pline(lineno);
+#ifdef TRACE
+       if (trace)
+               fprintf(trace, "after pline in vreopen\n");
+#endif
 
        /*
         * When we are typing part of a line for hardcopy open, don't
 
        /*
         * When we are typing part of a line for hardcopy open, don't
@@ -362,8 +370,8 @@ vrollup(dl)
        cnt = dl - (splitw ? WECHO : WBOT);
        if (splitw && (state == VISUAL || state == CRTOPEN))
                holdupd = 1;
        cnt = dl - (splitw ? WECHO : WBOT);
        if (splitw && (state == VISUAL || state == CRTOPEN))
                holdupd = 1;
-       vscroll(cnt);
        vmoveitup(cnt, 1);
        vmoveitup(cnt, 1);
+       vscroll(cnt);
        destline = dl - cnt, destcol = dc;
 }
 
        destline = dl - cnt, destcol = dc;
 }