mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
e33bc01307
PR: ports/17727 Submitted by: Nadav Eiron <nadav@libagent.cs.technion.ac.il>
23 lines
441 B
Plaintext
23 lines
441 B
Plaintext
--- pico/search.c.old Tue Oct 5 01:49:41 1999
|
|
+++ pico/search.c Wed Feb 16 03:41:45 2000
|
|
@@ -97,12 +97,15 @@
|
|
int bc;
|
|
int pc;
|
|
{
|
|
+ bc = (unsigned char)bc;
|
|
+ pc = (unsigned char)pc;
|
|
+
|
|
if ((curwp->w_bufp->b_mode & MDEXACT) == 0){
|
|
- if (bc>='a' && bc<='z')
|
|
- bc -= 0x20;
|
|
+ if (islower(bc))
|
|
+ bc = toupper(bc);
|
|
|
|
- if (pc>='a' && pc<='z')
|
|
- pc -= 0x20;
|
|
+ if (islower(pc))
|
|
+ pc = toupper(pc);
|
|
}
|
|
|
|
return(bc == pc);
|