mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
io/input,io/key: [API] replace SnippetOp with command
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user