Skip to content

When an escape sequence is longer than the buffer, keep the last two chars.

Matan Ziv-Av requested to merge matan/konsole:long-esc into release/22.04

Keeping only the last char is not enough, since we miss ST (ESC) for the end of the sequence. With this commit long escape sequences are still not handled correctly, but the parser at least recovers from them and continues to handle input after such sequences.

This fixes https://bugs.kde.org/show_bug.cgi?id=432804

This is the last commit from !615 (closed)

This should be applied to 22.04 branch, but not to master branch, unless my suggestion for handling parser redesign is accepted.

Merge request reports