From 874d317334fae1ddce316f9b6f4d0ce4e434bf52 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Tue, 23 Jun 2026 21:34:41 -0700 Subject: heirloom vi fixes from arch AUR --- ex_unix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ex_unix.c') diff --git a/ex_unix.c b/ex_unix.c index 4ad17f9..0341a52 100644 --- a/ex_unix.c +++ b/ex_unix.c @@ -101,7 +101,7 @@ unix0(int warn) char printub, puxb[UXBSIZE + sizeof (int)]; printub = 0; - CP(puxb, uxb); + lcpy(puxb, uxb, sizeof puxb); c = getchar(); if (c == '\n' || c == EOF) error(catgets(catd, 1, 192, @@ -179,7 +179,7 @@ uexp: if (warn && hush == 0 && chng && xchng != chng && value(WARN) && dol > zero) { xchng = chng; vnfl(); - printf(mesg(catgets(catd, 1, 197, + ex_printf(mesg(catgets(catd, 1, 197, "[No write]|[No write since last change]"))); noonl(); flush(); @@ -224,7 +224,7 @@ unixex(char *opt, char *up, int newstdin, int mode) if (dosusp) signal(SIGTSTP, SIG_DFL); #endif - if (inopen) + /*if (inopen)*/ f = setty(normf); if ((mode & 1) && pipe(pvec) < 0) { /* Newstdin should be io so it will be closed */ @@ -276,7 +276,7 @@ unixex(char *opt, char *up, int newstdin, int mode) if (ruptible) signal(SIGINT, SIG_DFL); execl(svalue(SHELL), "sh", opt, up, (char *)0); - printf(catgets(catd, 1, 201, "No %s!\n"), svalue(SHELL)); + ex_printf(catgets(catd, 1, 201, "No %s!\n"), svalue(SHELL)); error(NOSTR); } if (mode & 1) { @@ -306,7 +306,7 @@ unixwt(int c, struct termios f) setty(f); setrupt(); if (!inopen && c && hush == 0) { - printf("!\n"); + ex_printf("!\n"); flush(); termreset(); gettmode(); -- cgit v1.2.3