if (written != bufsize)
return FALSE;
- open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
return TRUE;
}
assert(view->lines);
if (!line->data) {
- report("No file has been chosen");
- return;
- }
+ if (line[1].type == LINE_STAT_NONE) {
+ report("Nothing to update");
+ return;
+ }
- if (!status_update_file(view, line->data, line->type))
+ while (++line < view->line + view->lines && line->data) {
+ if (!status_update_file(view, line->data, line->type))
+ report("Failed to update file status");
+ }
+
+ } else if (!status_update_file(view, line->data, line->type)) {
report("Failed to update file status");
+ }
+
+ open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
} else {
report("This action is only valid for the status view");
}