Make `less -R' not crash all the time.
This commit is contained in:
parent
353ce11c8b
commit
58b0fe7252
@ -601,9 +601,11 @@ store_char(ch, a, rep, pos)
|
||||
{
|
||||
if (!is_ansi_end(ch) && !is_ansi_middle(ch)) {
|
||||
/* Remove whole unrecognized sequence. */
|
||||
do {
|
||||
while (curr) {
|
||||
--curr;
|
||||
} while (!IS_CSI_START(linebuf[curr]));
|
||||
if (IS_CSI_START(linebuf[curr]))
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
a = AT_ANSI; /* Will force re-AT_'ing around it. */
|
||||
|
Loading…
Reference in New Issue
Block a user