1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: fix substring in s usages, preventing v -W build-tools

This commit is contained in:
Delyan Angelov
2021-03-23 13:36:50 +02:00
parent f2b73fe3ca
commit ae6420afc7
5 changed files with 18 additions and 15 deletions

View File

@@ -196,7 +196,7 @@ fn supports_truecolor() bool {
buf[len] = 0
s = tos(buf, len)
}
return '1:2:3' in s
return s.contains('1:2:3')
}
fn termios_reset() {
@@ -296,14 +296,17 @@ fn single_char(buf string) &Event {
utf8: event.utf8
code: KeyCode(96 | ch)
modifiers: .ctrl
} }
65...90 { event = &Event{
}
}
65...90 {
event = &Event{
typ: event.typ
ascii: event.ascii
utf8: event.utf8
code: KeyCode(32 | ch)
modifiers: .shift
} }
}
}
else {}
}