From 207ecc39cd9b1e85f482be23240fc5a90d775fd7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 3 Jun 2019 07:56:08 -0400 Subject: Fix #116 --- lib/ui/tab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/tab.go b/lib/ui/tab.go index 2ab703a..ed96ec4 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -102,7 +102,7 @@ func (tabs *Tabs) removeHistory(index int) { item = item - 1 } // dedup - if i > 0 && item == newHist[len(newHist)-1] { + if i > 0 && len(newHist) > 0 && item == newHist[len(newHist)-1] { continue } newHist = append(newHist, item) -- cgit v1.2.3