Skip to content

Commit

Permalink
apply unicode completion to all matching cursors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw committed Oct 8, 2024
1 parent 4da3a56 commit a2de2a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/components/CellInput/pluto_autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ const apply_completion = (view, completion, from, to) => {
}
}

view.dispatch({ changes: { from, to, insert }, annotations: autocomplete.pickedCompletion.of(completion) })
view.dispatch({
...autocomplete.insertCompletionText(view.state, insert, from, to),
annotations: autocomplete.pickedCompletion.of(completion),
})
}

const special_symbols_completion = (/** @type {() => Promise<SpecialSymbols?>} */ request_special_symbols) => {
Expand Down

0 comments on commit a2de2a0

Please sign in to comment.