diff options
Diffstat (limited to 'pw.c')
-rw-r--r-- | pw.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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]; |