diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
commit | 7011c19a8c96a2f8fb7c04d61cb28cdc507584a6 (patch) | |
tree | 22c0efaf2b6bb5b461389f9bac9542c7e3a5909a /sysutils/less/files/patch-ab | |
parent | Now buildable on 4.x, still broken on >= 5.x. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_11_0'.release/4.11.0
Notes
Notes:
svn path=/head/; revision=127022
svn path=/tags/RELEASE_4_11_0/; revision=127023; tag=release/4.11.0
Diffstat (limited to 'sysutils/less/files/patch-ab')
-rw-r--r-- | sysutils/less/files/patch-ab | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/sysutils/less/files/patch-ab b/sysutils/less/files/patch-ab deleted file mode 100644 index fb9dcb946beb..000000000000 --- a/sysutils/less/files/patch-ab +++ /dev/null @@ -1,41 +0,0 @@ ---- charset.c.orig Thu Mar 23 05:36:33 2000 -+++ charset.c Mon Jun 19 22:33:43 2000 -@@ -267,6 +267,10 @@ - control_char(c) - int c; - { -+#ifdef COLOR_LESS -+ if (c == ESC) -+ return 0; -+#endif - c &= 0377; - return (chardef[c] & IS_CONTROL_CHAR); - } -@@ -281,6 +285,20 @@ - { - static char buf[8]; - -+#ifdef COLOR_LESS -+ if(c == ESC) -+ sprintf(buf, "%c", ESC); -+ else -+ { -+ c &= 0377; -+ if (!control_char(c)) -+ sprintf(buf, "%c", c); -+ else if (!control_char(c ^ 0100)) -+ sprintf(buf, "^%c", c ^ 0100); -+ else -+ sprintf(buf, binfmt, c); -+ } -+#else - c &= 0377; - if (!control_char(c)) - sprintf(buf, "%c", c); -@@ -290,5 +308,6 @@ - sprintf(buf, "^%c", c ^ 0100); - else - sprintf(buf, binfmt, c); -+#endif - return (buf); - } |