clang-format src/commands.c

This commit is contained in:
Michael Stapelberg 2015-03-14 22:31:58 +01:00
parent 56f420c3dd
commit 513510de69
1 changed files with 1 additions and 3 deletions

View File

@ -1914,9 +1914,7 @@ void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name) {
TAILQ_FOREACH(assignment, &ws_assignments, ws_assignments) { TAILQ_FOREACH(assignment, &ws_assignments, ws_assignments) {
if (assignment->output == NULL) if (assignment->output == NULL)
continue; continue;
if (strcmp(assignment->name, workspace->name) != 0 if (strcmp(assignment->name, workspace->name) != 0 && (!name_is_digits(assignment->name) || ws_name_to_number(assignment->name) != workspace->num)) {
&& (!name_is_digits(assignment->name) || ws_name_to_number(assignment->name) != workspace->num)) {
continue; continue;
} }