mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
parent
fa693aecf8
commit
18e2609f11
1 changed files with 1 additions and 5 deletions
|
@ -499,11 +499,7 @@ void builder::underline_close() {
|
||||||
*/
|
*/
|
||||||
void builder::cmd(mousebtn index, string action, bool condition) {
|
void builder::cmd(mousebtn index, string action, bool condition) {
|
||||||
if (condition && !action.empty()) {
|
if (condition && !action.empty()) {
|
||||||
size_t p{0};
|
action = string_util::replace_all(action, ":", "\\:");
|
||||||
while ((p = action.find(':', p)) != string::npos && action[p - 1] != '\\') {
|
|
||||||
action.insert(p, 1, '\\');
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
tag_open(syntaxtag::A, to_string(static_cast<int>(index)) + ":" + action + ":");
|
tag_open(syntaxtag::A, to_string(static_cast<int>(index)) + ":" + action + ":");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue