diff options
| author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-18 06:56:49 -0600 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2024-02-18 16:14:26 +0100 |
| commit | a3f7420310be0fd778ef9fe2abf20edc2d8dc81a (patch) | |
| tree | 4d2cda40f462571746075983f6992ee7b697960e | |
| parent | Add terminfo entries for bracketed paste mode (diff) | |
| download | st-a3f7420310be0fd778ef9fe2abf20edc2d8dc81a.tar.gz st-a3f7420310be0fd778ef9fe2abf20edc2d8dc81a.zip | |
csi: check for private marker in 'S' case
The handler for 'S' final character does not check for a private
marker. This can cause a conflict with a sequence called 'XTSMGRAPHICS'
which also has an 'S' final character, but uses the private marker '?'.
Without checking for a private marker, st will perform a scroll up
operation when XTSMGRAPHICS is seen, which can cause unexpected display
artifacts.
| -rw-r--r-- | st.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -1728,6 +1728,7 @@ csihandle(void) | |||
| 1728 | } | 1728 | } |
| 1729 | break; | 1729 | break; |
| 1730 | case 'S': /* SU -- Scroll <n> line up */ | 1730 | case 'S': /* SU -- Scroll <n> line up */ |
| 1731 | if (csiescseq.priv) break; | ||
| 1731 | DEFAULT(csiescseq.arg[0], 1); | 1732 | DEFAULT(csiescseq.arg[0], 1); |
| 1732 | tscrollup(term.top, csiescseq.arg[0]); | 1733 | tscrollup(term.top, csiescseq.arg[0]); |
| 1733 | break; | 1734 | break; |
