Skip to content

Commit

Permalink
Track default special workspace name as special:special
Browse files Browse the repository at this point in the history
This is to fix the edge cases with the previous commit without breaking
user configs.

	modified:   src/helpers/MiscFunctions.cpp
  • Loading branch information
Agent_00Ming committed Apr 24, 2024
1 parent 24e7908 commit b42d500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/MiscFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ bool isDirection(const char& arg) {
int getWorkspaceIDFromString(const std::string& in, std::string& outName) {
int result = WORKSPACE_INVALID;
if (in.starts_with("special")) {
outName = "special";
outName = "special:special";

if (in.length() > 8) {
const auto NAME = in.substr(8);
Expand Down Expand Up @@ -833,4 +833,4 @@ bool envEnabled(const std::string& env) {
if (!ENV)
return false;
return std::string(ENV) == "1";
}
}

0 comments on commit b42d500

Please sign in to comment.