[Bug Fix] #set title_suffix Argument Position (#3505)

# Notes
- Off by one on argument index.
This commit is contained in:
Alex King 2023-07-18 18:02:25 -04:00 committed by GitHub
parent 8ebf5bbb78
commit fb3159b657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,8 @@ void SetTitleSuffix(Client *c, const Seperator *sep)
return;
}
const bool is_remove = !strcasecmp(sep->argplus[1], "-1");
std::string suffix = is_remove ? "" : sep->argplus[1];
const bool is_remove = !strcasecmp(sep->argplus[2], "-1");
std::string suffix = is_remove ? "" : sep->argplus[2];
auto t = c;
if (c->GetTarget() && c->GetTarget()->IsClient()) {