Introduction
Introduction Statistics Contact Development Disclaimer Help
tMoving the alt declaration to the beginning of the function. - st - [fork] cus…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 5d5a7c627a3709c3758c516de87609bb6b518e13
parent 866590521609ba35606e53990e381bdc2adf742f
Author: Christoph Lohmann <[email protected]>
Date: Thu, 8 Nov 2012 17:22:48 +0100
Moving the alt declaration to the beginning of the function.
Diffstat:
M st.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
t@@ -1459,6 +1459,7 @@ tsetscroll(int t, int b) {
void
tsetmode(bool priv, bool set, int *args, int narg) {
int *lim, mode;
+ bool alt;
for(lim = args + narg; args < lim; ++args) {
if(priv) {
t@@ -1502,7 +1503,7 @@ tsetmode(bool priv, bool set, int *args, int narg) {
case 1049: /* = 1047 and 1048 */
case 47:
case 1047: {
- bool alt = IS_SET(MODE_ALTSCREEN) != 0;
+ alt = IS_SET(MODE_ALTSCREEN) != 0;
if(alt)
tclearregion(0, 0, term.col-1, term.ro…
if(set ^ alt) /* set is always …
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.