1
0
mirror of https://github.com/irssi/irssi.git synced 2025-01-03 14:56:47 -05:00

Merge pull request #90 from ailin-nemui/italics-exception

more strict rules for italic emphasis to avoid file name clashes
This commit is contained in:
Alexander Færøy 2014-07-08 21:10:01 +02:00
commit c8dd54c2f6

View File

@ -81,7 +81,8 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
if ((end = strchr(bgn+1, *bgn)) == NULL)
continue;
if (!ishighalnum(end[-1]) || ishighalnum(end[1]) ||
end[1] == type || end[1] == '*' || end[1] == '_')
end[1] == type || end[1] == '*' || end[1] == '_' ||
(type == 29 && end[1] != NULL && ishighalnum(end[2])))
continue;
if (IS_CHANNEL(item)) {