From aa02dc7bf5715d1dfd230c326b9d9788ba1e6261 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 15 May 2022 15:08:55 -0700 Subject: Bugfix: save correct frequency and count variables. --- pw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pw.c b/pw.c index ede4fdb..c8b3944 100644 --- a/pw.c +++ b/pw.c @@ -984,10 +984,10 @@ static execode execute(pwstate *pw, char *cmd, char *resbuf, fprintf(f, ":p%d,%d,%d,%d,%d,%d\n", pw->hpos, pw->vsplit1, pw->vsplit2, pw->vs2pos, (int) pw->stat & stat_save, pw->tstop); - if (pw->tcount) - fprintf(f, ":f%d\n", pw->tcount); - if (pw->sncount) - fprintf(f, ":c%d\n", pw->sncount); + if (tfreq) + fprintf(f, ":f%d\n", tfreq); + if (sncount) + fprintf(f, ":c%d\n", sncount); for (int i = 0; i < ngrep; i++) { grep *gr = &grepstack[i]; -- cgit v1.2.3