Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 +MULTI+2.11; site brueer.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!mhuxt!mhuxr!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!ukc!reading!brueer!graham
From: graham@brueer.UUCP (Graham Carpenter)
Newsgroups: net.sources.bugs
Subject: Less fix
Message-ID: <210@brueer.brueer.UUCP>
Date: Tue, 24-Sep-85 19:14:50 EDT
Article-I.D.: brueer.210
Posted: Tue Sep 24 19:14:50 1985
Date-Received: Sun, 29-Sep-85 04:20:30 EDT
Organization: Dept of EE & E, Brunel University, Uxbridge, U.K.
Lines: 38
Xpath: reading gateway.cs

Subsequent to posting my fix for 'less', I have been contacted by people
with different versions of it, for whom my posting was not verbose enough.
So here is the full listing of the modified function which can be found in
command.c


		case '/':
		case '?':
			/*
			 * Search for a pattern.
			 * Accept chars of the pattern until \n.
			 */
			n = cmd_int();
			if (n <= 0)
				n = 1;
			mcc = last_mcc = c;
		
			/*
			 * Brunel mod to fix bug - Graham Carpenter
			 * 17th September 1985
			 * Without this fix the number N is passed
			 * as part of the search pattern.
			cmd_reset();
			
			
			start_mcc();
			c = getcc();
			goto again;
-- 
================================================================================
Graham J Carpenter.                |
Dept of Electrical Engineering     | Preferred:
Brunel University                  | ARPANET & JANET: graham%brueer@ucl-cs
Kingston Lane                      | 
Uxbridge                           | UUCP: !ukc!reading!brueer!graham
UB8 3PH                            |
ENGLAND                            |
================================================================================