home *** CD-ROM | disk | FTP | other *** search
- From: dupuy@hudson.cs.columbia.edu (Alexander Dupuy)
- Newsgroups: alt.sources
- Subject: Fifth unofficial patch for LESS
- Message-ID: <9004022044.AA02118@hudson.cs.columbia.edu>
- Date: 2 Apr 90 20:44:42 GMT
-
- A bug in less version 123 with less options "LESS=cw" causes empty lines not to
- be cleared properly for short files. The following patch fixes this:
-
- *** /tmp/,RCSt1a01884 Mon Apr 2 16:35:16 1990
- --- line.c Mon Apr 2 16:33:18 1990
- ***************
- *** 557,568 ****
- * If there is no current line, we pretend the line is
- * either "~" or "", depending on the "twiddle" flag.
- */
- ! if (twiddle)
- ! switch (i)
- ! {
- ! case 0: return ('~');
- ! case 1: return ('\n');
- ! }
- return (0);
- }
-
- --- 557,572 ----
- * If there is no current line, we pretend the line is
- * either "~" or "", depending on the "twiddle" flag.
- */
- ! switch (i)
- ! {
- ! case 0:
- ! if (twiddle)
- ! return ('~');
- ! return ('\n');
- ! case 1:
- ! if (twiddle)
- ! return ('\n');
- ! }
- return (0);
- }
-
-
- --
- inet: dupuy@cs.columbia.edu
- uucp: ...!rutgers!cs.columbia.edu!dupuy
-