diff options
author | vaxerski <[email protected]> | 2024-09-17 11:24:54 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-09-17 11:24:54 +0100 |
commit | e72ae6b25fe019404df31e783ae980f80d3eaa3c (patch) | |
tree | dcbaba5a631adb282afbb8644d801d9d9a1bbfa0 | |
parent | 9e356562446f44c471ae38a80506a9df039305d6 (diff) | |
download | Hyprland-e72ae6b25fe019404df31e783ae980f80d3eaa3c.tar.gz Hyprland-e72ae6b25fe019404df31e783ae980f80d3eaa3c.zip |
hyprctl: allow parsing empty value
fixes #7821
-rw-r--r-- | src/debug/HyprCtl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 683665be..3d4d8092 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -987,9 +987,9 @@ std::string dispatchKeyword(eHyprCtlOutputFormat format, std::string in) { const auto COMMAND = in.substr(0, secondSpacePos); const auto VALUE = in.substr(secondSpacePos + 1); - // If either COMMAND or VALUE is empty, handle accordingly - if (COMMAND.empty() || VALUE.empty()) - return "Invalid input: command or value is empty"; + // If COMMAND is empty, handle accordingly + if (COMMAND.empty()) + return "Invalid input: command is empty"; std::string retval = g_pConfigManager->parseKeyword(COMMAND, VALUE); |