mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-08 13:58:23 +02:00
fix
This commit is contained in:
parent
419a24173b
commit
8133dc15e2
1 changed files with 1 additions and 1 deletions
|
|
@ -2838,7 +2838,7 @@ std::optional<std::string> CConfigManager::handleWindowrule(const std::string& c
|
|||
for (const auto& el : data) {
|
||||
// split on space, no need for a CVarList here
|
||||
size_t spacePos = el.find(' ');
|
||||
if (!spacePos)
|
||||
if (spacePos == std::string::npos)
|
||||
return std::format("invalid field {}: missing a value", el);
|
||||
|
||||
const bool FIRST_IS_PROP = el.starts_with("match:");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue