Merge pull request #2502 from minus7/workspace-names

Improve new workspace name selection
This commit is contained in:
Drew DeVault 2018-08-20 19:22:44 -04:00 committed by GitHub
commit 389610795b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,6 +205,7 @@ char *workspace_next_name(const char *output_name) {
&& workspace_by_name(wso->workspace) == NULL) { && workspace_by_name(wso->workspace) == NULL) {
free(target); free(target);
target = strdup(wso->workspace); target = strdup(wso->workspace);
break;
} }
} }
if (target != NULL) { if (target != NULL) {