clang-format src/commands.c
This commit is contained in:
parent
56f420c3dd
commit
513510de69
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user