summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--widgets/compose.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index d0a4629..a68bbe1 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -177,7 +177,10 @@ func (c *Composer) Bindings() string {
 }
 
 func (c *Composer) Event(event tcell.Event) bool {
-	return c.focusable[c.focused].Event(event)
+	if c.editor != nil {
+		return c.focusable[c.focused].Event(event)
+	}
+	return false
 }
 
 func (c *Composer) Focus(focus bool) {
b232e87ebf92b6abba9bb3f7eff0597d0fff'>cbbdb23 ^
7a8f408 ^
d30a6e3 ^

f42724c ^
90db2e5 ^


78fc83e ^
fc719e4 ^
d30a6e3 ^
0bfb90b ^
58bc15b ^
fc719e4 ^



7a26b48 ^
58bc15b ^

fc719e4 ^
0bfb90b ^








f42724c ^

d30a6e3 ^
fc719e4 ^
0bfb90b ^


fc719e4 ^
eabdcff ^
fc719e4 ^
3874269 ^
3e7ac52 ^
7f540df ^
3874269 ^



7a26b48 ^
3874269 ^
c21ec37 ^
7f540df ^
d30a6e3 ^
7f540df ^
177651b ^


fc719e4 ^
d3b5a76 ^









7a26b48 ^
d3b5a76 ^








fc719e4 ^

d3b5a76 ^
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