aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-09-17 11:24:54 +0100
committervaxerski <[email protected]>2024-09-17 11:24:54 +0100
commite72ae6b25fe019404df31e783ae980f80d3eaa3c (patch)
treedcbaba5a631adb282afbb8644d801d9d9a1bbfa0
parent9e356562446f44c471ae38a80506a9df039305d6 (diff)
downloadHyprland-e72ae6b25fe019404df31e783ae980f80d3eaa3c.tar.gz
Hyprland-e72ae6b25fe019404df31e783ae980f80d3eaa3c.zip
hyprctl: allow parsing empty value
fixes #7821
-rw-r--r--src/debug/HyprCtl.cpp6
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);