From d7e925d0981df76d02df26817dbc131cbae0b55c Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Tue, 8 Oct 2024 18:46:03 +0200 Subject: [PATCH] apply unicode completion to all matching cursors (#3047) --- frontend/components/CellInput/pluto_autocomplete.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/components/CellInput/pluto_autocomplete.js b/frontend/components/CellInput/pluto_autocomplete.js index edca7a4aee..588412b7df 100644 --- a/frontend/components/CellInput/pluto_autocomplete.js +++ b/frontend/components/CellInput/pluto_autocomplete.js @@ -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} */ request_special_symbols) => {