mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
strip_real_length() : bolds, underlines, etc. one character styling
left it to infinite loop git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1140 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
391a7e5710
commit
c3a6417c0f
1 changed files with 5 additions and 3 deletions
|
|
@ -624,9 +624,11 @@ int strip_real_length(const char *str, int len,
|
|||
*last_color_len = 2;
|
||||
}
|
||||
str += 2;
|
||||
} else if (!IS_COLOR_CODE(*str)) {
|
||||
if (len-- == 0)
|
||||
break;
|
||||
} else {
|
||||
if (!IS_COLOR_CODE(*str)) {
|
||||
if (len-- == 0)
|
||||
break;
|
||||
}
|
||||
str++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue