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_cmds2.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ex_cmds2.c') diff --git a/ex_cmds2.c b/ex_cmds2.c index 8d822bd..5548af6 100644 --- a/ex_cmds2.c +++ b/ex_cmds2.c @@ -281,7 +281,7 @@ erewind(void) argv = argv0; args = args0; if (argc > 1 && !hush) { - printf(mesg(catgets(catd, 1, 30, "%d files@to edit")), argc); + ex_printf(mesg(catgets(catd, 1, 30, "%d files@to edit")), argc); if (inopen) putchar(' '); else @@ -346,7 +346,7 @@ next(void) morargc = argc; isalt = (strcmp(altfile, args)==0) + 1; if (savedfile[0]) - strcpy(altfile, savedfile); + lcpy(altfile, savedfile, sizeof altfile); safecp(savedfile, args, sizeof savedfile, "File name too long"); argc--; args = argv ? *++argv : strend(args) + 1; @@ -554,7 +554,7 @@ tailprim(register char *comm, int xi, bool notinvis) c = peekchar(); if (notinvis || isalpha(c) #ifdef BIT8 - || xi == 0 && (c&(0200|QUOTE)) == 0200 + || (xi == 0 && (c&(0200|QUOTE)) == 0200) #endif ) { /* @@ -568,7 +568,7 @@ tailprim(register char *comm, int xi, bool notinvis) while (cp < &tcommand[19] && (c = peekchar(), isalpha(c) #ifdef BIT8 - || xi == 0 && (c&(0200|QUOTE)) == 0200 + || (xi == 0 && (c&(0200|QUOTE)) == 0200) #endif )) *cp++ = getchar(); @@ -618,6 +618,7 @@ vcontin(bool ask) if (ask) { merror(catgets(catd, 1, 38, "[Hit return to continue] ")); + getline(*dot); flush(); } if (ask) { -- cgit v1.2.3