aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-30 15:31:04 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-30 15:31:04 +0000
commit8152f9e0184de47bc87fcde593c3b34e04bea1fe (patch)
tree9be2b10f2357b822962173160b314c7bacc8414c
parentd08c0844a4449d31c377f49c5ac9585cbada04e3 (diff)
downloadtermo-8152f9e0184de47bc87fcde593c3b34e04bea1fe.tar.gz
termo-8152f9e0184de47bc87fcde593c3b34e04bea1fe.tar.xz
termo-8152f9e0184de47bc87fcde593c3b34e04bea1fe.zip
Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1
-rw-r--r--driver-csi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/driver-csi.c b/driver-csi.c
index 3db8d20..f4de6a8 100644
--- a/driver-csi.c
+++ b/driver-csi.c
@@ -345,10 +345,8 @@ static TermKeyResult parse_csi(TermKey *tk, size_t introlen, size_t *csi_len, lo
p++;
}
- if(!present)
- args[argi] = -1;
-
- argi++;
+ if(present)
+ argi++;
*nargs = argi;
*csi_len = csi_end + 1;