From de7e78efa4a71b3f36c7154989c529dbdf9ae623 Mon Sep 17 00:00:00 2001 From: ia Date: Sun, 17 Jun 2018 00:44:25 +0200 Subject: [PATCH] all: gofmt Run standard gofmt command on project root. - go version go1.10.3 darwin/amd64 Signed-off-by: ia --- console_win.go | 26 +++++++++++++------------- tscreen.go | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/console_win.go b/console_win.go index 8fd2ab4..bd05fdf 100644 --- a/console_win.go +++ b/console_win.go @@ -17,25 +17,25 @@ package tcell import ( + "errors" "sync" "syscall" "unicode/utf16" "unsafe" - "errors" ) type cScreen struct { - in syscall.Handle - out syscall.Handle + in syscall.Handle + out syscall.Handle cancelflag syscall.Handle - scandone chan struct{} - evch chan Event - quit chan struct{} - curx int - cury int - style Style - clear bool - fini bool + scandone chan struct{} + evch chan Event + quit chan struct{} + curx int + cury int + style Style + clear bool + fini bool w int h int @@ -117,7 +117,7 @@ var ( ) const ( - w32Infinite = ^uintptr(0) + w32Infinite = ^uintptr(0) w32WaitObject0 = uintptr(0) ) @@ -530,7 +530,7 @@ func (s *cScreen) getConsoleInput() error { uintptr(pWaitObjects), uintptr(0), w32Infinite) - // WaitForMultipleObjects returns WAIT_OBJECT_0 + the index. + // WaitForMultipleObjects returns WAIT_OBJECT_0 + the index. switch rv { case w32WaitObject0: // s.cancelFlag return errors.New("cancelled") diff --git a/tscreen.go b/tscreen.go index ede71f2..4c64e83 100644 --- a/tscreen.go +++ b/tscreen.go @@ -385,8 +385,8 @@ outer: func (t *tScreen) Fini() { t.Lock() defer t.Unlock() - - ti := t.ti + + ti := t.ti t.cells.Resize(0, 0) t.TPuts(ti.ShowCursor) t.TPuts(ti.AttrOff) @@ -405,7 +405,7 @@ func (t *tScreen) Fini() { default: close(t.quit) } - + t.termioFini() }