diff options
Diffstat (limited to 'www/w3m/files/patch-au')
-rw-r--r-- | www/w3m/files/patch-au | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/www/w3m/files/patch-au b/www/w3m/files/patch-au deleted file mode 100644 index 30d8d47cfbf9..000000000000 --- a/www/w3m/files/patch-au +++ /dev/null @@ -1,23 +0,0 @@ ---- terms.c.orig Mon Nov 5 02:59:40 2001 -+++ terms.c Mon Nov 5 02:59:17 2001 -@@ -244,8 +244,18 @@ - TerminalGet(tty, &d_ioval); - #ifdef MOUSE - term = getenv("TERM"); -- if (!strncmp(term, "kterm", 5) || !strncmp(term, "xterm", 5)) { -- is_xterm = 1; -+ { -+ static struct { const char *prefix; int len; } xtermlike[] = { -+ { "kterm", 5 }, { "xterm", 5 }, { "rxvt", 4 } -+ }; -+ int i; -+ -+ for (i = 0; i < sizeof(xtermlike)/sizeof(xtermlike[0]); i++) { -+ if (!strncmp(term, xtermlike[i].prefix, xtermlike[i].len)) { -+ is_xterm = 1; -+ break; -+ } -+ } - } - #endif - return 0; |