From e499411123b2f10ff1b012ecffa4d5a9e231e2bf Mon Sep 17 00:00:00 2001 From: Richard Bainesly Date: Fri, 21 Jun 2024 17:29:24 -0400 Subject: [PATCH] only discard second arg in rollinglog --- src/debug/HyprCtl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 1c7e1ca3..f3de4cbd 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1677,7 +1677,8 @@ std::string CHyprCtl::getReply(std::string request) { std::string result = ""; - request = request.substr(0, request.find(" ")); + if (request.starts_with("rollinglog")) + request = request.substr(0, request.find(" ")); // parse exact cmds first, then non-exact. for (auto& cmd : m_vCommands) {