From b4561fa8149ecc876427759a52693a0d5a46ab1d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 20 Mar 2020 21:15:45 +0100 Subject: [PATCH] Revert "term: make compilable with v2 on windows" --- 0.2_roadmap.txt | 1 + vlib/term/term_windows.v | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/0.2_roadmap.txt b/0.2_roadmap.txt index 058e358852..813d164aba 100644 --- a/0.2_roadmap.txt +++ b/0.2_roadmap.txt @@ -37,6 +37,7 @@ + require explicit C.fn definitions, add all missing definitions + string.index() ?int + new AST based parser ++ make V2 compile itself - wrap up memory management - remove all compiler memory leaks - doom.v diff --git a/vlib/term/term_windows.v b/vlib/term/term_windows.v index bc4031832e..7ad853222f 100644 --- a/vlib/term/term_windows.v +++ b/vlib/term/term_windows.v @@ -22,7 +22,7 @@ fn C.GetConsoleScreenBufferInfo(handle os.HANDLE, info &CONSOLE_SCREEN_BUFFER_IN // get_terminal_size returns a number of colums and rows of terminal window. pub fn get_terminal_size() (int, int) { if is_atty(1) > 0 && os.getenv('TERM') != 'dumb' { - info := C.CONSOLE_SCREEN_BUFFER_INFO{} + info := CONSOLE_SCREEN_BUFFER_INFO{} if C.GetConsoleScreenBufferInfo(C.GetStdHandle(C.STD_OUTPUT_HANDLE), &info) { columns := int(info.srWindow.Right - info.srWindow.Left + 1)