From fbcc6936f4dc676ff2970e44a919ebc6e24627d3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 15 Jul 2022 20:07:52 +0200 Subject: [PATCH] fix dashes in hyprctl --- hyprctl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 92ab4f5e..f2f4b712 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -215,7 +215,7 @@ int main(int argc, char** argv) { const auto ARGS = splitArgs(argc, argv); for (auto i = 0; i < ARGS.size(); ++i) { - if (ARGS[i].contains("-")) { + if (ARGS[i][0] == '-') { // parse if (ARGS[i] == "-j" && !fullArgs.contains("j")) { fullArgs += "j";