summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-07-25 08:29:10 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-25 08:29:10 -0400
commit2f626ddd18e8472e0ddc2bb9013b7d01c1b5b9a9 (patch)
treefb39de5981ea9c4923d12c1bb176e52af5520183
parentfe2fef4b750e570361eabc849c1ec09fe5eda01d (diff)
downloadaerc-2f626ddd18e8472e0ddc2bb9013b7d01c1b5b9a9.tar.gz
Fix panic when tabs.popHistory is nonexistent
-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 7808db4..a9b24a9 100644
--- a/lib/ui/tab.go
+++ b/lib/ui/tab.go
@@ -89,7 +89,7 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri
 
 func (tabs *Tabs) Select(index int) {
 	if index >= len(tabs.Tabs) {
-		panic("Tried to set tab index to a non-existing element")
+		return
 	}
 
 	if tabs.Selected != index {
k/mu/commit/074keyboard.mu?h=main&id=45c08fea47de1a23ce98f4fc7a1c5c3bed92b5fb'>45c08fea ^
9f484946 ^
7a84094a ^


45c08fea ^

6fef33fd ^
7a84094a ^

6fef33fd ^

45c08fea ^
7a84094a ^
a0331a9b ^
e3092e7b ^

a0331a9b ^
77d5b5d6 ^
104854ca ^
760f683f ^
0d2686c7 ^
e3092e7b ^

760f683f ^
77d5b5d6 ^
104854ca ^
e3092e7b ^
104854ca ^
7a84094a ^
a0331a9b ^
e3092e7b ^
7a84094a ^
80df524b ^
502d2ea5 ^
760f683f ^
1ead3562 ^
e3092e7b ^
0d2686c7 ^


1ead3562 ^
e3092e7b ^
6aa42628 ^
80df524b ^
1ead3562 ^
e3092e7b ^

c6c19a27 ^


760f683f ^
77d5b5d6 ^
104854ca ^
80df524b ^
1ead3562 ^

80df524b ^
7bf9212f ^

e3092e7b ^
f8c0ef3e ^
760f683f ^
77d5b5d6 ^
104854ca ^
f8c0ef3e ^
80df524b ^
502d2ea5 ^


136412d2 ^
502d2ea5 ^
f8c0ef3e ^

5b1219ca ^
f8c0ef3e ^
6a0f71b9 ^
760f683f ^
77d5b5d6 ^
104854ca ^
6a0f71b9 ^
80df524b ^
502d2ea5 ^
6a0f71b9 ^

5e9eff8c ^

760f683f ^
77d5b5d6 ^
104854ca ^
5e9eff8c ^
502d2ea5 ^
5e9eff8c ^
1ead3562 ^
5e9eff8c ^
104854ca ^
5e9eff8c ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107