From d26cfb6b383c40533402f9fe64f68a233a6ed651 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 22 Aug 2020 12:34:03 +0200 Subject: [PATCH] Make golint happy --- key.go | 4 ++-- renderer.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/key.go b/key.go index 4424075..fa4457b 100644 --- a/key.go +++ b/key.go @@ -187,7 +187,7 @@ const ( KeyPgDown ) -// Mapping for control keys to friendly consts +// Mapping for control keys to friendly consts: var keyNames = map[int]string{ keyNUL: "ctrl+@", // also ctrl+` keySOH: "ctrl+a", @@ -272,7 +272,7 @@ var hexes = map[string]Key{ } // readInput reads keypress and mouse input from a TTY and returns a message -// containing information about the key or mouse event accordingly +// containing information about the key or mouse event accordingly. func readInput(r io.Reader) (Msg, error) { var buf [256]byte diff --git a/renderer.go b/renderer.go index b6ae0d5..0b6f221 100644 --- a/renderer.go +++ b/renderer.go @@ -116,7 +116,6 @@ func (r *renderer) flush() { // Clear any lines we painted in the last render. if r.linesRendered > 0 { for i := r.linesRendered - 1; i > 0; i-- { - // Check if we should skip rendering for this line. Clearing the // line before painting is part of the standard rendering routine. if _, exists := r.ignoreLines[i]; !exists { @@ -211,7 +210,6 @@ func (r *renderer) setIgnoredLines(from int, to int) { moveCursor(out, r.linesRendered, 0) // put cursor back r.out.Write(out.Bytes()) } - } // clearIgnoredLines returns control of any ignored lines to the standard