mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 19:05:58 +01:00
hyprctl: avoid .pop_back() on empty string
This commit is contained in:
parent
fb80cbe415
commit
9c00381dfc
1 changed files with 2 additions and 1 deletions
|
@ -835,6 +835,7 @@ std::string dispatchSetCursor(std::string request) {
|
|||
std::string theme = "";
|
||||
for (size_t i = 1; i < vars.size() - 1; ++i)
|
||||
theme += vars[i] + " ";
|
||||
if (!theme.empty())
|
||||
theme.pop_back();
|
||||
|
||||
int size = 0;
|
||||
|
|
Loading…
Reference in a new issue