mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
parent
5028779528
commit
7c60998459
1 changed files with 2 additions and 2 deletions
|
@ -86,9 +86,9 @@ namespace drawtypes {
|
|||
string line{text};
|
||||
|
||||
while ((start = line.find('%')) != string::npos && (end = line.find('%', start + 1)) != string::npos) {
|
||||
auto token = line.substr(start, end + 1);
|
||||
auto token = line.substr(start, end - start + 1);
|
||||
|
||||
line.erase(0, end);
|
||||
line.erase(start, end - start + 1);
|
||||
|
||||
// ignore false positives (lemonbar-style declarations)
|
||||
if (token[1] == '{')
|
||||
|
|
Loading…
Reference in a new issue