diff options
| author | Luuk Blankenstijn <121433746+LuukBlankenstijn@users.noreply.github.com> | 2025-06-08 21:17:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-08 20:17:38 +0100 |
| commit | 231e01e39b187d9a84b4a27871eb2bc4fb5c7d84 (patch) | |
| tree | fdcec1023218f86d92995e405873ec13d06dc325 /hyprctl/main.cpp | |
| parent | c6f713fefe59c8c51783210dad6b68586f248de2 (diff) | |
hyprctl: don't detect a negative value as a parameter (#10671)
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index e3d39e0b..c28883fa 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -389,7 +389,7 @@ int main(int argc, char** argv) { parseArgs = false; continue; } - if (parseArgs && (ARGS[i][0] == '-') && !isNumber(ARGS[i], true) /* For stuff like -2 */) { + if (parseArgs && (ARGS[i][0] == '-') && !(isNumber(ARGS[i], true) || isNumber(ARGS[i].substr(0, ARGS[i].length() - 1), true)) /* For stuff like -2 or -2, */) { // parse if (ARGS[i] == "-j" && !fullArgs.contains("j")) { fullArgs += "j"; |
