diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-06-03 07:56:08 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-03 07:56:08 -0400 |
commit | 207ecc39cd9b1e85f482be23240fc5a90d775fd7 (patch) | |
tree | 8c5a9870e28b27e9145ff746e78f668a822ddc21 /lib | |
parent | 0ec970bce8ae674cc10434080548aace7caeac0e (diff) | |
download | aerc-207ecc39cd9b1e85f482be23240fc5a90d775fd7.tar.gz |
Fix #116 0.1.0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/tab.go | 2 |
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) |