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++;
|
||||
}
|
||||
|
||||
if(!present)
|
||||
args[argi] = -1;
|
||||
|
||||
argi++;
|
||||
if(present)
|
||||
argi++;
|
||||
|
||||
*nargs = argi;
|
||||
*csi_len = csi_end + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user