release 3.4, June 24, 1980
[unix-history] / usr / src / usr.bin / ex / ex_voper.c
index 42812bf..63bf53c 100644 (file)
@@ -106,11 +106,13 @@ operate(c, cnt)
         */
        case 'r':
                vrep(cnt);
         */
        case 'r':
                vrep(cnt);
+               vmacchng(1);
                return;
 
        default:
                goto nocount;
        }
                return;
 
        default:
                goto nocount;
        }
+       vmacchng(1);
        /*
         * Had an operator, so accept another count.
         * Multiply counts together.
        /*
         * Had an operator, so accept another count.
         * Multiply counts together.
@@ -413,6 +415,7 @@ deleteit:
        case 'x':
                if (margin())
                        goto errlab;
        case 'x':
                if (margin())
                        goto errlab;
+               vmacchng(1);
                while (cnt > 0 && !margin())
                        wcursor += dir, cnt--;
                opf = deleteop;
                while (cnt > 0 && !margin())
                        wcursor += dir, cnt--;
                opf = deleteop;