From 8152f9e0184de47bc87fcde593c3b34e04bea1fe Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 30 Nov 2012 15:31:04 +0000 Subject: [PATCH] Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1 --- driver-csi.c | 6 ++---- 1 file 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;