Skip to content

Commit fe6f303

Browse files
committed
Fix nil pointer dereference related to #430
1 parent f3e0480 commit fe6f303

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

editor/tooltip.go

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ func (t *Tooltip) clearText() {
136136
}
137137

138138
func (t *Tooltip) updateText(hl *Highlight, str string) {
139+
if t.font == nil {
140+
return
141+
}
142+
139143
font := t.font
140144

141145
// rune text

0 commit comments

Comments
 (0)