summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Goodman <wagoodman@users.noreply.github.com>2020-05-13 10:52:20 -0400
committerGitHub <noreply@github.com>2020-05-13 10:52:20 -0400
commit8fe31e82ee5e73b81a07fbe3844edb088cadc76e (patch)
tree85b82f4f3bc19d83f44c35728436345ede721d93
parentc6bb2372a8be13a80a81c00c04f9724970c0ae60 (diff)
parentf5b5a42a3da3e0cc3ca169d94b5b3c6fce5e06ff (diff)
Merge pull request #289 from abitrolly/patch-1
Require golang 1.10+ (closes #278)
-rw-r--r--README.md2
-rw-r--r--runtime/ui/view/layer.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d18aa1a..7f958a0 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ or download the latest Darwin build from the [releases page](https://github.com/
Download the [latest release](https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_windows_amd64.zip).
**Go tools**
-Requires Go version 1.9 or higher.
+Requires Go version 1.10 or higher.
```bash
go get github.com/wagoodman/dive
diff --git a/runtime/ui/view/layer.go b/runtime/ui/view/layer.go
index 08472fa..601cd78 100644
--- a/runtime/ui/view/layer.go
+++ b/runtime/ui/view/layer.go
@@ -301,7 +301,7 @@ func (v *Layer) Render() error {
width, _ := g.Size()
if v.constrainedRealEstate {
headerStr := format.RenderNoHeader(width, isSelected)
- headerStr += fmt.Sprintf("\nLayer")
+ headerStr += "\nLayer"
_, err := fmt.Fprintln(v.header, headerStr)
if err != nil {
return err