summaryrefslogtreecommitdiffstats
path: root/contrib/less/line.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-10-08 16:17:42 +0000
committerdelphij <delphij@FreeBSD.org>2007-10-08 16:17:42 +0000
commitcee6fe7563d96f028c6e9343a81e24f9c7f70296 (patch)
treea5e1c28b8d2c6768b8b27fa4e866fa91cd86f8b9 /contrib/less/line.c
parentde40ea14af9f01e8574114a8b793148ba1910638 (diff)
downloadFreeBSD-src-cee6fe7563d96f028c6e9343a81e24f9c7f70296.zip
FreeBSD-src-cee6fe7563d96f028c6e9343a81e24f9c7f70296.tar.gz
Resolve conflicts to complete less v408 import.
Approved by: re (kensmith)
Diffstat (limited to 'contrib/less/line.c')
-rw-r--r--contrib/less/line.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/less/line.c b/contrib/less/line.c
index c1a31fb..217c24c 100644
--- a/contrib/less/line.c
+++ b/contrib/less/line.c
@@ -269,7 +269,7 @@ pshift(shift)
while (shifted <= shift && from < curr)
{
c = linebuf[from];
- if (c == ESC && ctldisp == OPT_ONPLUS)
+ if (ctldisp == OPT_ONPLUS && IS_CSI_START(c))
{
/* Keep cumulative effect. */
linebuf[to] = c;
@@ -524,7 +524,7 @@ in_ansi_esc_seq()
for (p = &linebuf[curr]; p > linebuf; )
{
LWCHAR ch = step_char(&p, -1, linebuf);
- if (ch == ESC)
+ if (IS_CSI_START(ch))
return (1);
if (!is_ansi_middle(ch))
return (0);
@@ -603,13 +603,13 @@ store_char(ch, a, rep, pos)
/* Remove whole unrecognized sequence. */
do {
--curr;
- } while (linebuf[curr] != ESC);
+ } while (!IS_CSI_START(linebuf[curr]));
return 0;
}
a = AT_ANSI; /* Will force re-AT_'ing around it. */
w = 0;
}
- else if (ctldisp == OPT_ONPLUS && ch == ESC)
+ else if (ctldisp == OPT_ONPLUS && IS_CSI_START(ch))
{
a = AT_ANSI; /* Will force re-AT_'ing around it. */
w = 0;
@@ -943,7 +943,7 @@ do_append(ch, rep, pos)
} else if ((!utf_mode || is_ascii_char(ch)) && control_char((char)ch))
{
do_control_char:
- if (ctldisp == OPT_ON || (ctldisp == OPT_ONPLUS && ch == ESC))
+ if (ctldisp == OPT_ON || (ctldisp == OPT_ONPLUS && IS_CSI_START(ch)))
{
/*
* Output as a normal character.
OpenPOWER on IntegriCloud