Browse Source

Remove FreeBSD-specific iswascii call

June 3 weeks ago
parent
commit
a7f3ff3172
Signed by: Curtis McEnroe <june@causal.agency> GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      edit.c

+ 1
- 1
edit.c View File

@@ -97,7 +97,7 @@ static void killForeWord(void) {
97 97
 
98 98
 static void rot13(void) {
99 99
 	for (wchar_t *ch = line.buf; ch != line.end; ++ch) {
100
-		if (!iswascii(*ch)) continue;
100
+		if (*ch > L'z') continue;
101 101
 		if (iswupper(*ch)) *ch = L'A' + (*ch - L'A' + 13) % 26;
102 102
 		if (iswlower(*ch)) *ch = L'a' + (*ch - L'a' + 13) % 26;
103 103
 	}

Loading…
Cancel
Save