Skip to content

Commit

Permalink
isalnum() -> is7alnum()
Browse files Browse the repository at this point in the history
  • Loading branch information
kilobyte committed Sep 21, 2023
1 parent 98af55a commit cd6bef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions highlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ void do_all_high(char *line, struct session *ses)
r+=txt-text;
l+=txt-text;
/* changed: no longer highlight in the middle of a word */
if (((l==0)||(!isalnum(text[l])||!isalnum(text[l-1])))&&
(!isalnum(text[r])||!isalnum(text[r+1])))
if (((l==0)||(!is7alnum(text[l])||!is7alnum(text[l-1])))&&
(!is7alnum(text[r])||!is7alnum(text[r+1])))
for (int i=l;i<=r;i++)
attr[i]=highpattern[(++c)%nhighpattern];
txt=text+r+1;
Expand Down

0 comments on commit cd6bef6

Please sign in to comment.