Skip to content

Commit

Permalink
less-481
Browse files Browse the repository at this point in the history
  • Loading branch information
shadchin committed Nov 2, 2015
1 parent 4313c49 commit 29292e6
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile.wnm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CC = cl

# Normal flags
CFLAGS = /nologo /ML /W3 /GX /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
CFLAGS = /nologo /MD /W3 /EHsc /O2 /I "." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386

# Debugging flags
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

======================================================================

Major changes between "less" versions 458 and 479
Major changes between "less" versions 458 and 481

* Don't overwrite history file; just append to it.

Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Less, version 479
Less, version 481

This is the distribution of less, version 479, released 06 Jul 2015.
This is the distribution of less, version 481, released 31 Aug 2015.
This program is part of the GNU project (http://www.gnu.org).

This program is free software. You may redistribute it and/or
Expand Down
2 changes: 2 additions & 0 deletions defines.wn
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@

#define popen _popen
#define pclose _pclose
#if !defined(_MSC_VER) || (_MSC_VER < 1900)
#define snprintf _snprintf
#endif

#pragma warning(disable:4996)
12 changes: 9 additions & 3 deletions forwback.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ extern int final_attr;
extern int oldbot;
#if HILITE_SEARCH
extern int size_linebuf;
extern int hilite_search;
extern int status_col;
#endif
#if TAGS
extern char *tagoption;
Expand Down Expand Up @@ -147,8 +149,10 @@ forw(n, pos, force, only_last, nblank)
(forw_scroll >= 0 && n > forw_scroll && n != sc_height-1);

#if HILITE_SEARCH
prep_hilite(pos, pos + 3*size_linebuf, ignore_eoi ? 1 : -1);
pos = next_unfiltered(pos);
if (hilite_search == OPT_ONPLUS || is_filtering() || status_col) {
prep_hilite(pos, pos + 4*size_linebuf, ignore_eoi ? 1 : -1);
pos = next_unfiltered(pos);
}
#endif

if (!do_repaint)
Expand Down Expand Up @@ -305,7 +309,9 @@ back(n, pos, force, only_last)
squish_check();
do_repaint = (n > get_back_scroll() || (only_last && n > sc_height-1));
#if HILITE_SEARCH
prep_hilite((pos < 3*size_linebuf) ? 0 : pos - 3*size_linebuf, pos, -1);
if (hilite_search == OPT_ONPLUS || is_filtering() || status_col) {
prep_hilite((pos < 3*size_linebuf) ? 0 : pos - 3*size_linebuf, pos, -1);
}
#endif
while (--n >= 0)
{
Expand Down
2 changes: 1 addition & 1 deletion less.man
Original file line number Diff line number Diff line change
Expand Up @@ -1637,4 +1637,4 @@ LESS(1) General Commands Manual LESS(1)



Version 479: 06 Jul 2015 LESS(1)
Version 481: 31 Aug 2015 LESS(1)
2 changes: 1 addition & 1 deletion less.nro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH LESS 1 "Version 479: 06 Jul 2015"
.TH LESS 1 "Version 481: 31 Aug 2015"
.SH NAME
less \- opposite of more
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion lessecho.man
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ LESSECHO(1) General Commands Manual LESSECHO(1)



Version 479: 06 Jul 2015 LESSECHO(1)
Version 481: 31 Aug 2015 LESSECHO(1)
2 changes: 1 addition & 1 deletion lessecho.nro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH LESSECHO 1 "Version 479: 06 Jul 2015"
.TH LESSECHO 1 "Version 481: 31 Aug 2015"
.SH NAME
lessecho \- expand metacharacters
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion lesskey.man
Original file line number Diff line number Diff line change
Expand Up @@ -357,4 +357,4 @@ LESSKEY(1) General Commands Manual LESSKEY(1)



Version 479: 06 Jul 2015 LESSKEY(1)
Version 481: 31 Aug 2015 LESSKEY(1)
2 changes: 1 addition & 1 deletion lesskey.nro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH LESSKEY 1 "Version 479: 06 Jul 2015"
.TH LESSKEY 1 "Version 481: 31 Aug 2015"
.SH NAME
lesskey \- specify key bindings for less
.SH SYNOPSIS
Expand Down
10 changes: 9 additions & 1 deletion pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,17 @@ match(pattern, pattern_len, buf, buf_len, pfound, pend)

for ( ; buf < buf_end; buf++)
{
for (pp = pattern, lp = buf; *pp == *lp; pp++, lp++)
for (pp = pattern, lp = buf; ; pp++, lp++)
{
char cp = *pp;
char cl = *lp;
if (caseless == OPT_ONPLUS && ASCII_IS_UPPER(cp))
cp = ASCII_TO_LOWER(cp);
if (cp != cl)
break;
if (pp == pattern_end || lp == buf_end)
break;
}
if (pp == pattern_end)
{
if (pfound != NULL)
Expand Down
4 changes: 3 additions & 1 deletion version.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ v477 5/19/15 Fix off-by-one in jump_forw_buffered;
don't add FAKE_* files to cmd history.
v478 5/21/15 Fix nonportable pointer usage in hilite tree.
v479 7/6/15 Allow %% escapes in LESSOPEN variable.
v480 7/24/15 Fix bug in no-regex searches; support MSVC v1900.
v481 8/20/15 Fix broken -g option.
*/

char version[] = "479";
char version[] = "481";

0 comments on commit 29292e6

Please sign in to comment.