made it flush after [Read only]
authorMark Horton <mark@ucbvax.Berkeley.EDU>
Sat, 6 Sep 1980 13:51:08 +0000 (05:51 -0800)
committerMark Horton <mark@ucbvax.Berkeley.EDU>
Sat, 6 Sep 1980 13:51:08 +0000 (05:51 -0800)
SCCS-vsn: usr.bin/ex/ex_io.c 5.3

usr/src/usr.bin/ex/ex_io.c

index f32fc42..4528274 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 1980 Regents of the University of California */
 /* Copyright (c) 1980 Regents of the University of California */
-static char *sccsid = "@(#)ex_io.c     5.2 %G%";
+static char *sccsid = "@(#)ex_io.c     5.3 %G%";
 #include "ex.h"
 #include "ex_argv.h"
 #include "ex_temp.h"
 #include "ex.h"
 #include "ex_argv.h"
 #include "ex_temp.h"
@@ -357,8 +357,10 @@ rop(c)
        }
        if ((stbuf.st_mode & 0222) == 0)
                value(READONLY) = 1;
        }
        if ((stbuf.st_mode & 0222) == 0)
                value(READONLY) = 1;
-       if (value(READONLY))
+       if (value(READONLY)) {
                printf(" [Read only]");
                printf(" [Read only]");
+               flush();
+       }
        if (c == 'r')
                setdot();
        else
        if (c == 'r')
                setdot();
        else