Skip to content

Commit

Permalink
all: gofmt
Browse files Browse the repository at this point in the history
Run standard gofmt command on project root.

- go version go1.10.3 darwin/amd64

Signed-off-by: ia <isaac.ardis@gmail.com>
  • Loading branch information
whilei authored and gdamore committed Jun 23, 2018
1 parent 2efc922 commit de7e78e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions console_win.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -117,7 +117,7 @@ var (
)

const (
w32Infinite = ^uintptr(0)
w32Infinite = ^uintptr(0)
w32WaitObject0 = uintptr(0)
)

Expand Down Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions tscreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -405,7 +405,7 @@ func (t *tScreen) Fini() {
default:
close(t.quit)
}

t.termioFini()
}

Expand Down

0 comments on commit de7e78e

Please sign in to comment.