Bugfix to argless CSIs; present 0 arguments, not 1 whose value is -1
This commit is contained in:
parent
d08c0844a4
commit
8152f9e018
|
@ -345,10 +345,8 @@ 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;
|
||||||
*csi_len = csi_end + 1;
|
*csi_len = csi_end + 1;
|
||||||
|
|
Loading…
Reference in New Issue