mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: wrap up unsafe { nil } (p. 3)
This commit is contained in:
@@ -233,7 +233,7 @@ fn (mut ctx Context) termios_loop() {
|
||||
}
|
||||
if !ctx.paused {
|
||||
sw.restart()
|
||||
if ctx.cfg.event_fn != voidptr(0) {
|
||||
if ctx.cfg.event_fn != unsafe { nil } {
|
||||
unsafe {
|
||||
len := C.read(C.STDIN_FILENO, &u8(ctx.read_buf.data) + ctx.read_buf.len,
|
||||
ctx.read_buf.cap - ctx.read_buf.len)
|
||||
|
||||
Reference in New Issue
Block a user