+status_update(struct view *view)
+{
+ if (view == VIEW(REQ_VIEW_STATUS)) {
+ struct line *line = view->lines
+ ? &view->line[view->lineno] : NULL;
+
+ if (!line || !line->data) {
+ report("No file chosen for update");
+ return;
+ }
+
+ if (!status_update_file(view, line->data, line->type))
+ report("Failed to update file status");
+ } else {
+ report("This action is only valid for the status view");
+ }
+}
+
+static void