Also parse negative numbers in CSI

This commit is contained in:
Kovid Goyal
2023-03-29 15:12:22 +05:30
parent aebfdaa69a
commit 05e10d8066
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ func (self *EscapeCodeParser) write_ch(ch byte) {
}
func csi_type(ch byte) csi_char_type {
if 0x30 <= ch && ch <= 0x3f {
if (0x30 <= ch && ch <= 0x3f) || ch == '-' {
return parameter_csi_char
}
if 0x40 <= ch && ch <= 0x7E {