26 lines
727 B
Diff
26 lines
727 B
Diff
|
|
From 2b6add4657f3a78e15d8310e54ab898ce593f776 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Mark Nudelman <markn@greenwoodsoftware.com>
|
||
|
|
Date: Wed, 19 Oct 2022 18:17:18 -0700
|
||
|
|
Subject: [PATCH 27/48] lesskey: make lt_screen treat "ESC[0m" like "ESC[m".
|
||
|
|
|
||
|
|
---
|
||
|
|
lesstest/lt_screen.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/lesstest/lt_screen.c b/lesstest/lt_screen.c
|
||
|
|
index 0e5a28a..8b3daac 100644
|
||
|
|
--- a/lesstest/lt_screen.c
|
||
|
|
+++ b/lesstest/lt_screen.c
|
||
|
|
@@ -230,7 +230,7 @@ static int screen_set_color(int color) {
|
||
|
|
// case 38: break;
|
||
|
|
// case 48: break;
|
||
|
|
default:
|
||
|
|
- if (color < 0) {
|
||
|
|
+ if (color <= 0) {
|
||
|
|
screen.curr_fg_color = screen.curr_bg_color = NULL_COLOR;
|
||
|
|
screen.curr_attr = 0;
|
||
|
|
ret = 1;
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|