+ /* Store that we ran this assignment to not execute it again. We have
+ * to do this before running the actual command to prevent infinite
+ * loops. */
+ window->nr_assignments++;
+ window->ran_assignments = srealloc(window->ran_assignments, sizeof(Assignment *) * window->nr_assignments);
+ window->ran_assignments[window->nr_assignments - 1] = current;
+