mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 04:10:04 +01:00
hyprctl: don't detect a negative value as a parameter (#10671)
This commit is contained in:
parent
c6f713fefe
commit
231e01e39b
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue