mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue