mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 13:03:48 -07:00
hyprctl: avoid .pop_back() on empty string
This commit is contained in:
@@ -835,6 +835,7 @@ std::string dispatchSetCursor(std::string request) {
|
|||||||
std::string theme = "";
|
std::string theme = "";
|
||||||
for (size_t i = 1; i < vars.size() - 1; ++i)
|
for (size_t i = 1; i < vars.size() - 1; ++i)
|
||||||
theme += vars[i] + " ";
|
theme += vars[i] + " ";
|
||||||
|
if (!theme.empty())
|
||||||
theme.pop_back();
|
theme.pop_back();
|
||||||
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
|
Reference in New Issue
Block a user