summaryrefslogtreecommitdiffstats
path: root/gui.go
diff options
context:
space:
mode:
authorAnthony HAMON <anthony.hamon@iadvize.com>2018-08-06 07:41:59 +0200
committerAnthony HAMON <anthony.hamon@iadvize.com>2018-08-06 07:41:59 +0200
commit4836e6c9060538b2394d3b8ad7f5140f7439dae7 (patch)
tree9932f7e83122b1c9f017ac4d8018bd6cc4e9c026 /gui.go
parent684e8b2e80087f1ae019ca887b16c6f9d6b73d2b (diff)
remove useless else
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui.go b/gui.go
index 98654d5a0..ccb3ec8f2 100644
--- a/gui.go
+++ b/gui.go
@@ -226,10 +226,10 @@ func layout(g *gocui.Gui) error {
v.Wrap = true
}
return nil
- } else {
- g.DeleteView("limit")
}
+ g.DeleteView("limit")
+
optionsTop := height - 2
// hiding options if there's not enough space
if height < 30 {