diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2012-01-01 16:59:42 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2012-01-01 16:59:42 +0100 |
commit | 31109f5047f04a3ab0a9a9b78910ef1c193e3e6f (patch) | |
tree | d5b87280a10ef837535419583ec522ff1c170409 /sys/src/cmd/mothra/rdhtml.c | |
parent | d09c46c352ca2595454c54b8d30aea1f0a0f6607 (diff) |
mothra: allow plmouse() to update mouse state, use a pipe to signal screen update
Diffstat (limited to 'sys/src/cmd/mothra/rdhtml.c')
-rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index c60f18293..fb0553484 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -100,7 +100,7 @@ void pl_htmloutput(Hglob *g, int nsp, char *s, Field *field){ if(g->tp!=g->text && g->tp!=g->etext && g->tp[-1]!=' ') *g->tp++=' '; while(g->tp!=g->etext && *s) *g->tp++=*s++; - if(g->state->tag==Tag_title) g->dst->changed=1; + if(g->state->tag==Tag_title) update(g->dst); *g->tp='\0'; } return; @@ -151,7 +151,7 @@ void pl_htmloutput(Hglob *g, int nsp, char *s, Field *field){ g->state->link[0] || g->state->image[0], ap); g->para=0; g->linebrk=0; - g->dst->changed=1; + update(g->dst); } /* @@ -588,7 +588,7 @@ void plrdplain(char *name, int fd, Www *dst){ g.form=0; strncpy(g.text, name, NTITLE); plaintext(&g); - dst->finished=1; + finish(dst); } void plrdhtml(char *name, int fd, Www *dst){ Stack *sp; @@ -1049,9 +1049,9 @@ void plrdhtml(char *name, int fd, Www *dst){ htmlerror(g.name, g.lineno, "missing </%s> at EOF", tag[g.state->tag].name); *g.tp='\0'; - dst->changed=1; + update(dst); getpix(dst->text, dst); - dst->finished=1; + finish(dst); return; } } |