Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1
This commit is contained in:
parent
d08c0844a4
commit
8152f9e018
|
@ -345,9 +345,7 @@ static TermKeyResult parse_csi(TermKey *tk, size_t introlen, size_t *csi_len, lo
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!present)
|
if(present)
|
||||||
args[argi] = -1;
|
|
||||||
|
|
||||||
argi++;
|
argi++;
|
||||||
|
|
||||||
*nargs = argi;
|
*nargs = argi;
|
||||||
|
|
Loading…
Reference in New Issue