diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-11-08 17:22:48 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-11-08 17:22:48 +0100 |
commit | 5d5a7c627a3709c3758c516de87609bb6b518e13 (patch) | |
tree | e86a474100a2e450314ea93a0710e8730f5791a3 /st.c | |
parent | 866590521609ba35606e53990e381bdc2adf742f (diff) | |
download | st-5d5a7c627a3709c3758c516de87609bb6b518e13.tar.gz st-5d5a7c627a3709c3758c516de87609bb6b518e13.zip |
Moving the alt declaration to the beginning of the function.
Diffstat (limited to 'st.c')
-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 */ |