Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1

This commit is contained in:
Paul LeoNerd Evans 2012-11-30 15:31:04 +00:00
parent d08c0844a4
commit 8152f9e018
1 changed files with 2 additions and 4 deletions

View File

@ -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;