diff --git a/app/window.go b/app/window.go index 116a38d2..86a8a6af 100644 --- a/app/window.go +++ b/app/window.go @@ -513,6 +513,7 @@ func (c *callbacks) EditorInsert(text string) { func (c *callbacks) EditorReplace(r key.Range, text string) { c.w.imeState.Replace(r, text) c.Event(key.EditEvent{Range: r, Text: text}) + c.Event(key.SnippetEvent(c.w.imeState.Snippet.Range)) } func (c *callbacks) SetEditorSelection(r key.Range) {