mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@ -86,7 +86,7 @@ pub fn init(cfg Config) &Context {
|
||||
C.atexit(restore_terminal_state)
|
||||
for code in ctx.cfg.reset {
|
||||
os.signal_opt(code, fn (_ os.Signal) {
|
||||
mut c := ui.ctx_ptr
|
||||
mut c := unsafe { ui.ctx_ptr }
|
||||
if unsafe { c != 0 } {
|
||||
c.cleanup()
|
||||
}
|
||||
|
Reference in New Issue
Block a user