mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Vendor import of less v679.
This commit is contained in:
1 parent
48b0a08b87
commit
9006df9a94
12 files changed
+29
-16
No files matched your search
@@ -9,6 +9,16 @@
|
||||
Report bugs, suggestions or comments at
|
||||
https://github.com/gwsw/less/issues.
|
||||
|
||||
======================================================================
|
||||
|
||||
Major changes between "less" versions 678 and 679
|
||||
|
||||
* Fix bad parsing of lesskey file an env var is a prefix of another
|
||||
env var (github #626).
|
||||
|
||||
* Fix unexpected exit using -K if a key press is received while reading
|
||||
the input file (github #628).
|
||||
|
||||
======================================================================
|
||||
|
||||
Major changes between "less" versions 668 and 678
|
||||
|
||||
@@ -750,7 +750,7 @@ static int cmd_search(constant char *cmd, constant unsigned char *table, constan
|
||||
{
|
||||
action = taction;
|
||||
*extra = textra;
|
||||
} else if (match > 0) /* cmd is a prefix of this table entry */
|
||||
} else if (match > 0 && action == A_INVALID) /* cmd is a prefix of this table entry */
|
||||
{
|
||||
action = A_PREFIX;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* This file was generated by mkhelp.pl from less.hlp at 20:41 on 2025/5/1 */
|
||||
/* This file was generated by mkhelp.pl from less.hlp at 19:46 on 2025/5/28 */
|
||||
#include "less.h"
|
||||
constant char helpdata[] = {
|
||||
'\n',
|
||||
|
||||
@@ -575,10 +575,11 @@ typedef enum {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define S_INTERRUPT 01
|
||||
#define S_STOP 02
|
||||
#define S_WINCH 04
|
||||
#define ABORT_SIGS() (sigs & (S_INTERRUPT|S_STOP))
|
||||
#define S_INTERRUPT (1<<0)
|
||||
#define S_SWINTERRUPT (1<<1)
|
||||
#define S_STOP (1<<2)
|
||||
#define S_WINCH (1<<3)
|
||||
#define ABORT_SIGS() (sigs & (S_INTERRUPT|S_SWINTERRUPT|S_STOP))
|
||||
|
||||
#ifdef EXIT_SUCCESS
|
||||
#define QUIT_OK EXIT_SUCCESS
|
||||
|
||||
@@ -2424,4 +2424,4 @@
|
||||
For more information, see the less homepage at
|
||||
⟨https://greenwoodsoftware.com/less⟩.
|
||||
|
||||
Version 678: 01 May 2025 [4mLESS[24m(1)
|
||||
Version 679: 28 May 2025 [4mLESS[24m(1)
|
||||
@@ -1,5 +1,5 @@
|
||||
'\" t
|
||||
.TH LESS 1 "Version 678: 01 May 2025"
|
||||
.TH LESS 1 "Version 679: 28 May 2025"
|
||||
.SH NAME
|
||||
less \- display the contents of a file in a terminal
|
||||
.SH SYNOPSIS
|
||||
|
||||
+1
-1
@@ -48,4 +48,4 @@
|
||||
|
||||
Report bugs at ⟨https://github.com/gwsw/less/issues⟩.
|
||||
|
||||
Version 678: 01 May 2025 [4mLESSECHO[24m(1)
|
||||
Version 679: 28 May 2025 [4mLESSECHO[24m(1)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
.TH LESSECHO 1 "Version 678: 01 May 2025"
|
||||
.TH LESSECHO 1 "Version 679: 28 May 2025"
|
||||
.SH NAME
|
||||
lessecho \- expand metacharacters
|
||||
.SH SYNOPSIS
|
||||
|
||||
+1
-1
@@ -405,4 +405,4 @@
|
||||
Mark Nudelman
|
||||
Report bugs at ⟨https://github.com/gwsw/less/issues⟩.
|
||||
|
||||
Version 678: 01 May 2025 [4mLESSKEY[24m(1)
|
||||
Version 679: 28 May 2025 [4mLESSKEY[24m(1)
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
'\" t
|
||||
.TH LESSKEY 1 "Version 678: 01 May 2025"
|
||||
.TH LESSKEY 1 "Version 679: 28 May 2025"
|
||||
.SH NAME
|
||||
lesskey \- customize key bindings for less
|
||||
.SH "SYNOPSIS (deprecated)"
|
||||
|
||||
@@ -275,7 +275,7 @@ start:
|
||||
if (ret != 0)
|
||||
{
|
||||
if (ret == READ_INTR)
|
||||
sigs |= S_INTERRUPT;
|
||||
sigs |= S_SWINTERRUPT;
|
||||
reading = FALSE;
|
||||
return (ret);
|
||||
}
|
||||
@@ -287,7 +287,7 @@ start:
|
||||
int c;
|
||||
|
||||
c = WIN32getch();
|
||||
sigs |= S_INTERRUPT;
|
||||
sigs |= S_SWINTERRUPT;
|
||||
reading = FALSE;
|
||||
if (c != CONTROL('C') && c != intr_char)
|
||||
WIN32ungetch((char) c);
|
||||
@@ -348,7 +348,7 @@ public int iopen(constant char *filename, int flags)
|
||||
while (!opening && SET_JUMP(open_label))
|
||||
{
|
||||
opening = FALSE;
|
||||
if (sigs & S_INTERRUPT)
|
||||
if (sigs & (S_INTERRUPT|S_SWINTERRUPT))
|
||||
{
|
||||
sigs = 0;
|
||||
#if HAVE_SETTABLE_ERRNO
|
||||
|
||||
@@ -1047,6 +1047,8 @@ v675 4/3/25 Add ESC-b.
|
||||
v676 4/16/25 Fix two OSC 8 display bugs.
|
||||
v677 4/27/25 Fix & filtering bug.
|
||||
v678 5/1/25 Don't change stty tab setting.
|
||||
v679 5/28/25 Fix lesskey parsing bug when env var is prefix of another;
|
||||
fix unexpected exit when using -K.
|
||||
*/
|
||||
|
||||
char version[] = "678";
|
||||
char version[] = "679";
|
||||
Reference in new issue
Block a user