summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-02-08 21:19:24 -0500
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-02-08 21:19:24 -0500
commitf3415774783781be919cd0452d401bbbe396c879 (patch)
treeebda9ff60bd62b616c6bc5657b381d5abc0000d9
parent54791bc9f973699cd2c20acd3da1666686fc7c23 (diff)
downloadscreen-f3415774783781be919cd0452d401bbbe396c879.tar.gz
Fix escape-# to select windows this time.
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index b67afd5..0bb3603 100644
--- a/src/process.c
+++ b/src/process.c
@@ -586,7 +586,7 @@ InitKeytab()
args[1] = NULL;
SaveAction(ktab + '-', RC_SELECT, args, 0);
}
- for (i = 0; i < ((maxwin < 10) ? maxwin : 10); i++)
+ for (i = 0; i < ((maxwin && maxwin < 10) ? maxwin : 10); i++)
{
char *args[2], arg1[10];
args[0] = arg1;