aboutsummaryrefslogtreecommitdiff
path: root/lib/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-03 07:56:08 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-03 07:56:08 -0400
commit207ecc39cd9b1e85f482be23240fc5a90d775fd7 (patch)
tree8c5a9870e28b27e9145ff746e78f668a822ddc21 /lib/ui
parent0ec970bce8ae674cc10434080548aace7caeac0e (diff)
Fix #1160.1.0
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/tab.go2
1 files changed, 1 insertions, 1 deletions
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)