forked from PsychoticNinja/irssi
more strict rules for italic emphasis to avoid file name clashes
this additional check avoids /root/.hiddendir from italicising /root/, because that is often used in path names
This commit is contained in:
parent
05979c8d9f
commit
a5a7fdbe5f
@ -81,7 +81,8 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
|
|||||||
if ((end = strchr(bgn+1, *bgn)) == NULL)
|
if ((end = strchr(bgn+1, *bgn)) == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (!ishighalnum(end[-1]) || ishighalnum(end[1]) ||
|
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;
|
continue;
|
||||||
|
|
||||||
if (IS_CHANNEL(item)) {
|
if (IS_CHANNEL(item)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user