aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c8
1 files 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];