io/input,io/key: [API] replace SnippetOp with command

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-10-09 17:08:47 -05:00
parent 813d836641
commit eed93aaffe
5 changed files with 14 additions and 38 deletions
+3 -3
View File
@@ -315,9 +315,9 @@ func (q *keyQueue) editorState() EditorState {
return s
}
func (q *keyQueue) snippetOp(op key.SnippetOp) {
if op.Tag == q.focus {
q.content.Snippet = op.Snippet
func (q *keyQueue) setSnippet(req key.SnippetCmd) {
if req.Tag == q.focus {
q.content.Snippet = req.Snippet
}
}