summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-06 01:08:59 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-06 01:10:05 +0100
commit583b8842e74b9a3d3b42280a6a53a382554a1975 (patch)
tree8965a6205945c921abe65b44b74175c0b42297c9 /src/config/ConfigManager.cpp
parenta8541d5f645185f184f1c724386ba5aa38fbd18a (diff)
configmanager: fix substr offset in default ws rule
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 164741b5..04764779 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -1055,7 +1055,7 @@ void CConfigManager::handleWorkspaceRules(const std::string& command, const std:
else if ((delim = rule.find("monitor:")) != std::string::npos)
wsRule.monitor = rule.substr(delim + 8);
else if ((delim = rule.find("default:")) != std::string::npos)
- wsRule.isDefault = configStringToInt(rule.substr(delim + 9));
+ wsRule.isDefault = configStringToInt(rule.substr(delim + 8));
};
size_t pos = 0;