If the editor doesn't handle an event, it's now forwarded and no unecessarily updates are being triggered
MODIFY
ui/editor.go
ui/editor.go
@@ -341,6 +341,8 @@ func NewEditor() *Editor {
return editor.inputCapture(event)
} else if (editor.inputCapture == nil || editor.inputCapture(event) != nil) && event.Rune() != 0 {
editor.InsertCharacter(left, right, selection, event.Rune())
+ } else {
+ return event
}
editor.UpdateMentionHandler()

If the editor doesn't handle an event, it's now forwarded and no unecessarily updates are being triggered