diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-11-30 15:31:04 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-11-30 15:31:04 +0000 |
commit | 8152f9e0184de47bc87fcde593c3b34e04bea1fe (patch) | |
tree | 9be2b10f2357b822962173160b314c7bacc8414c /driver-csi.c | |
parent | d08c0844a4449d31c377f49c5ac9585cbada04e3 (diff) | |
download | termo-8152f9e0184de47bc87fcde593c3b34e04bea1fe.tar.gz termo-8152f9e0184de47bc87fcde593c3b34e04bea1fe.tar.xz termo-8152f9e0184de47bc87fcde593c3b34e04bea1fe.zip |
Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1
Diffstat (limited to 'driver-csi.c')
-rw-r--r-- | driver-csi.c | 6 |
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; |