2010-02-12
small fixes
| t_action.c | file | annotate | diff | revisions | |
| tagutil.c | file | annotate | diff | revisions |
1.1 --- a/t_action.c Fri Feb 12 18:54:28 2010 +0100 1.2 +++ b/t_action.c Fri Feb 12 19:08:45 2010 +0100 1.3 @@ -268,7 +268,7 @@ 1.4 a->apply = t_action_reload; 1.5 break; 1.6 case T_SAVE_IF_DIRTY: 1.7 - a->rw = true; 1.8 + a->rw = false; /* yes, we lie, we're bad */ 1.9 a->apply = t_action_saveifdirty; 1.10 break; 1.11 default:
2.1 --- a/tagutil.c Fri Feb 12 18:54:28 2010 +0100 2.2 +++ b/tagutil.c Fri Feb 12 19:08:45 2010 +0100 2.3 @@ -115,10 +115,9 @@ 2.4 /* apply every action asked to the file */ 2.5 TAILQ_FOREACH(a, aQ, entries) { 2.6 bool ok = (*a->apply)(a, file); 2.7 - if (!ok) { 2.8 - warnx("`%s': %s", file->path, t_error_msg(file)); 2.9 + if (!ok) 2.10 + /* FIXME: warnx("`%s': %s", file->path, t_error_msg(file));*/ 2.11 break; 2.12 - } 2.13 } 2.14 file->destroy(file); 2.15 }