Vendor import of less v581.2.

This commit is contained in:
Xin LI 2021-05-01 23:13:19 -07:00
parent 1737d9dd58
commit bb457ab744
11 changed files with 20 additions and 19 deletions

2
NEWS
View File

@ -12,7 +12,7 @@
======================================================================
Major changes between "less" versions 563 and 581
Major changes between "less" versions 563 and 581.2
* Change ESC-u command to toggle, not disable, highlighting per man page.

4
README
View File

@ -1,7 +1,7 @@
Less, version 581
Less, version 581.2
This is the distribution of less, version 581, released 06 Apr 2021.
This is the distribution of less, version 581.2, released 28 Apr 2021.
This program is part of the GNU project (http://www.gnu.org).
This program is free software. You may redistribute it and/or

2
help.c
View File

@ -1,4 +1,4 @@
/* This file was generated by mkhelp.pl from less.hlp at 1:31 on 2021/4/7 */
/* This file was generated by mkhelp.pl from less.hlp at 14:59 on 2021/4/28 */
#include "less.h"
constant char helpdata[] = {
'\n',

View File

@ -1817,4 +1817,4 @@ LESS(1) General Commands Manual LESS(1)
Version 581: 06 Apr 2021 LESS(1)
Version 581.2: 28 Apr 2021 LESS(1)

View File

@ -1,5 +1,5 @@
'\" t
.TH LESS 1 "Version 581: 06 Apr 2021"
.TH LESS 1 "Version 581.2: 28 Apr 2021"
.SH NAME
less \- opposite of more
.SH SYNOPSIS

View File

@ -51,4 +51,4 @@ LESSECHO(1) General Commands Manual LESSECHO(1)
Version 581: 06 Apr 2021 LESSECHO(1)
Version 581.2: 28 Apr 2021 LESSECHO(1)

View File

@ -1,4 +1,4 @@
.TH LESSECHO 1 "Version 581: 06 Apr 2021"
.TH LESSECHO 1 "Version 581.2: 28 Apr 2021"
.SH NAME
lessecho \- expand metacharacters
.SH SYNOPSIS

View File

@ -358,4 +358,4 @@ LESSKEY(1) General Commands Manual LESSKEY(1)
Version 581: 06 Apr 2021 LESSKEY(1)
Version 581.2: 28 Apr 2021 LESSKEY(1)

View File

@ -1,5 +1,5 @@
'\" t
.TH LESSKEY 1 "Version 581: 06 Apr 2021"
.TH LESSKEY 1 "Version 581.2: 28 Apr 2021"
.SH NAME
lesskey \- specify key bindings for less
.SH SYNOPSIS

View File

@ -1673,8 +1673,6 @@ ltputs(str, affcnt, f_putc)
public void
init_mouse(VOID_PARAM)
{
if (!mousecap)
return;
#if !MSDOS_COMPILER
ltputs(sc_s_mousecap, sc_height, putchr);
#else
@ -1693,8 +1691,6 @@ init_mouse(VOID_PARAM)
public void
deinit_mouse(VOID_PARAM)
{
if (!mousecap)
return;
#if !MSDOS_COMPILER
ltputs(sc_e_mousecap, sc_height, putchr);
#else
@ -1718,7 +1714,8 @@ init(VOID_PARAM)
ltputs(sc_init, sc_height, putchr);
if (!no_keypad)
ltputs(sc_s_keypad, sc_height, putchr);
init_mouse();
if (mousecap)
init_mouse();
}
init_done = 1;
if (top_scroll)
@ -1741,7 +1738,8 @@ init(VOID_PARAM)
{
if (!no_init)
win32_init_term();
init_mouse();
if (mousecap)
init_mouse();
}
win32_init_vt_term();
@ -1763,7 +1761,8 @@ deinit(VOID_PARAM)
#if !MSDOS_COMPILER
if (!(quit_if_one_screen && one_screen))
{
deinit_mouse();
if (mousecap)
deinit_mouse();
if (!no_keypad)
ltputs(sc_e_keypad, sc_height, putchr);
if (!no_init)
@ -1776,7 +1775,8 @@ deinit(VOID_PARAM)
win32_deinit_vt_term();
if (!(quit_if_one_screen && one_screen))
{
deinit_mouse();
if (mousecap)
deinit_mouse();
if (!no_init)
win32_deinit_term();
}

View File

@ -919,6 +919,7 @@ v578 2/9/21 Doc
v579 2/14/21 Fix double-width char bugs and non-match search crash.
v580 3/2/21 Some color fixes; fix compiler warnings; some lesstest support.
v581 4/6/21 Ignore SIGTSTP in secure mode; don't print "skipping" when filtering.
v581.2 4/28/21 Fix failure to deinit mouse.
*/
char version[] = "581";
char version[] = "581.2";