diff options
| -rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1459,6 +1459,7 @@ tsetscroll(int t, int b) { | |||
| 1459 | void | 1459 | void |
| 1460 | tsetmode(bool priv, bool set, int *args, int narg) { | 1460 | tsetmode(bool priv, bool set, int *args, int narg) { |
| 1461 | int *lim, mode; | 1461 | int *lim, mode; |
| 1462 | bool alt; | ||
| 1462 | 1463 | ||
| 1463 | for(lim = args + narg; args < lim; ++args) { | 1464 | for(lim = args + narg; args < lim; ++args) { |
| 1464 | if(priv) { | 1465 | if(priv) { |
| @@ -1502,7 +1503,7 @@ tsetmode(bool priv, bool set, int *args, int narg) { | |||
| 1502 | case 1049: /* = 1047 and 1048 */ | 1503 | case 1049: /* = 1047 and 1048 */ |
| 1503 | case 47: | 1504 | case 47: |
| 1504 | case 1047: { | 1505 | case 1047: { |
| 1505 | bool alt = IS_SET(MODE_ALTSCREEN) != 0; | 1506 | alt = IS_SET(MODE_ALTSCREEN) != 0; |
| 1506 | if(alt) | 1507 | if(alt) |
| 1507 | tclearregion(0, 0, term.col-1, term.row-1); | 1508 | tclearregion(0, 0, term.col-1, term.row-1); |
| 1508 | if(set ^ alt) /* set is always 1 or 0 */ | 1509 | if(set ^ alt) /* set is always 1 or 0 */ |
