X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=c81131f8b17ea0c21ecd69c2803264d91f9deacc;hp=8c3afaab4dc470a0d37a3882668c27e0db272a48;hb=5ffc2c9018aee8b11750a956e9228ed70b3413ae;hpb=adc222822ec7d872f2bcc0ca384e6ec5fd777287 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 8c3afaab..c81131f8 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -160,11 +160,11 @@ UiStyle::StyledText UiStyle::styleString(QString s) { fmtList.clear(); fmtList.append(None); curFmtRng.format = format(None); fgCol = bgCol = -1; - length = 1; + length = 2; } else if(s[pos+1] == 'R') { // reverse // TODO: implement reverse formatting - length = 1; + length = 2; } else { // all others are toggles QString code = QString("%") + s[pos+1]; if(s[pos+1] == 'D') code += s[pos+2];