Commit Graph

77 Commits

Author SHA1 Message Date
wiz 0c3e116cc5 From OpenBSD:
revision 1.7
date: 2004/04/08 15:18:28;  author: millert;  state: Exp;  lines: +5 -7
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@

Ok'd by mrg.
2004-08-26 01:29:20 +00:00
wiz 03a2c411d5 Fix documentation of lesskey config file path per PR 23597
by Christian Biere.
2003-11-30 01:17:03 +00:00
wiz 4bbfee09ca Various typo fixes from Jonathon Gray via jmc@openbsd. 2003-11-17 11:16:10 +00:00
mrg a1c0290e03 reorder some structure definitions to appease gcc3.3 2003-07-26 16:02:25 +00:00
mrg 0634cd7fff fix build errors 2003-04-14 03:02:28 +00:00
mrg 1492c6b657 merge less 381 2003-04-14 02:56:45 +00:00
mrg e0555382b4 import less 381. changes:
v375   4/7/02   Fix searching for SGR sequences; fix SECURE build;
                add SGR support to DJGPP version (thanks to Eli Zaretskii).
v376  6/10/02   Fix bug in overstriking mulitbyte UTF-8 characters
                (thanks to Jungshik Shin).
                Posted to Web page.
-----------------------------------------------------------------
v377  9/10/02   Fix bug in Windows version when file contains CR;
                fix bug in search highlights with -R;
                make initial buffer limit really be 64K not unlimited.
v378  9/30/02   Misc bug fixes and compiler warning cleanup.
                Posted to Web page.
-----------------------------------------------------------------
v379 11/23/02   Add -L option; fix bug with ctrl-K in lesskey files;
                improve UTF-8 overstriking and underscore overstriking;
                fix minor man page problems; change to autoconf 2.54.
v380 11/24/02   Make LINENUM same as POSITION.
v381 11/28/02   Make -N use 7 columns for line number if possible.
2003-04-14 02:09:56 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
thorpej 22887c3c29 Avoid strict alias warning. 2002-12-06 02:57:30 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
wiz ab4ef2b995 Remove !__STDC__. 2002-06-15 18:27:20 +00:00
simonb 592e570685 Remove prototypes for some static functions that don't exist. 2002-03-05 12:54:34 +00:00
mrg 235e0d0060 clean up. 2002-03-05 12:32:16 +00:00
mrg 4192ea474e merge less-374 2002-03-05 12:28:31 +00:00
mrg 9668e4f341 less 374 2002-03-05 11:44:53 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
pk f9a6face66 * Avoid stale pointers into a previously used termcap buffer.
* Skip ti/te capabilities only when using -E or when in `more mode'.
2002-01-14 10:36:25 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
mrg b0caae0467 clean up WARNS. 2001-07-26 14:20:47 +00:00
mrg ec2876e2a5 add a new header file. 2001-07-26 13:47:24 +00:00
mrg c001ebc093 don't need this. 2001-07-26 13:46:39 +00:00
mrg 172ab14d0e merge cornflakes (less 358) 2001-07-26 13:43:43 +00:00
mrg 95a4fc7c7a less 358 2001-07-26 12:00:22 +00:00
wiz 3f9984fc90 `existent', not `existant' 2001-06-19 13:42:07 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
lukem c2b84904ae use %ll_ instead of the less standard %q_ 2001-01-04 23:05:54 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
lukem 88d3d7c59e update after change to return value of tputs() third argument 1999-10-04 23:26:59 +00:00
kleink edafa96ea6 Change the behaviour when in `more' mode (less invoked as more):
* Treat search patterns as BREs only, per 1003.2 and XCU5.
* Do not perform any special treatment when an unqoted * or @ is given as
  the first character of the search pattern.
Addresses PR bin/8269 by Chris Demetriou.
1999-09-03 22:07:05 +00:00
kleink 3e325adc1a Nuke unused V8 regexp. 1999-08-31 21:05:07 +00:00
sommerfeld cb8819d25b Serious fix for the silly and flippant PR7875 which preserves the
original silly spirit of the man page.
1999-08-02 12:41:20 +00:00
mrg 681f17b9d0 fix my fix for PR 227. fixes PR 7444. 1999-05-19 12:39:10 +00:00
mrg 6dd8be1324 in more_mode, do not clear the screen all the time, like traditional more. this fixes ancient PR#227. 1999-04-06 11:53:00 +00:00
mrg 26eacbe1a9 merge less 335. 1999-04-06 05:57:34 +00:00
mrg 656a5a7c56 less 335 1999-04-06 05:30:33 +00:00
mrg 4bd041833b fix WARNS 1999-03-24 09:24:59 +00:00
mrg 8313c3fc7d add lessecho support 1999-03-24 09:23:52 +00:00
mrg 11a47566ef build lessecho 1999-03-24 09:17:20 +00:00
mrg bf48433e3b add lessecho 1999-03-24 09:15:20 +00:00
mrg d8b1ac6eb3 oops, missed this part of less all this time. 1999-03-24 09:11:14 +00:00
thorpej ed386461d5 Fix printf format problems. 1999-02-08 23:48:58 +00:00
kleink 0aa500a352 Use off_t for file size descriptions rather than long; from Tero Kivinen
in PR bin/6863.
1999-02-04 17:05:35 +00:00
simonb c3cbf60d0b Swap helpful/non-helpful messages in option table.
Fixes bin/5441 from der Mouse.
1999-01-22 12:43:43 +00:00
simonb fe0d28b4c5 Use lgetenv() for "LESS" and "MORE" variables. 1999-01-22 12:31:22 +00:00
christos 76e23f8bdc Braces to the altar of gcc-2.8.1 1998-12-19 17:46:08 +00:00
mycroft decd62c2bf const poisoning. 1998-07-26 15:13:14 +00:00
christos c727065ddd WARNSify 1998-02-22 14:57:28 +00:00
mrg 7afa0335b4 change tty settings "now" when switching to/from raw mode 1998-02-10 03:53:39 +00:00