Fix #116
This commit is contained in:
parent
0ec970bce8
commit
207ecc39cd
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ func (tabs *Tabs) removeHistory(index int) {
|
||||||
item = item - 1
|
item = item - 1
|
||||||
}
|
}
|
||||||
// dedup
|
// dedup
|
||||||
if i > 0 && item == newHist[len(newHist)-1] {
|
if i > 0 && len(newHist) > 0 && item == newHist[len(newHist)-1] {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
newHist = append(newHist, item)
|
newHist = append(newHist, item)
|
||||||
|
|
Loading…
Reference in a new issue