summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@flatbox.9hal>2012-03-09 13:33:26 +0100
committercinap_lenrek <cinap_lenrek@flatbox.9hal>2012-03-09 13:33:26 +0100
commit36e0b53bb7386692682d261be62bda6562cdb99e (patch)
treef0df1731edc4b3bc58518f9402a15b6494d0f483
parent9e8b285562c35ef1c47f74ccafbda7f7624b22af (diff)
mothra: buddah cursor wont reset on first page when load fails
-rw-r--r--sys/src/cmd/mothra/mothra.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c
index 797640d32..83de25a54 100644
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -228,12 +228,12 @@ int mkmfile(char *stem, int mode){
}
void donecurs(void){
- if(current == nil)
- return;
- if(mothmode)
+ if(current && current->alldone==0)
+ esetcursor(&readingcurs);
+ else if(mothmode)
esetcursor(&mothcurs);
else
- esetcursor(current->alldone ? 0 : &readingcurs);
+ esetcursor(0);
}
void scrollto(char *tag);
@@ -262,7 +262,7 @@ void main(int argc, char *argv[]){
* so that we can stop all subprocesses with a note,
* and to isolate rendezvous from other processes
*/
- if(cohort = rfork(RFPROC|RFNOTEG|RFNAMEG|RFREND)){
+ if(cohort=rfork(RFPROC|RFNOTEG|RFNAMEG|RFREND)){
atexit(killcohort);
notify(catch);
waitpid();