From de86a77dfc894122c232e48cfb6f083ef4ce37aa Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Tue, 27 Sep 2022 17:06:48 +1300 Subject: [PATCH] Change post-insertion selection option --- shared/naturalcrit/codeEditor/codeEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index fe63fdd15..3ca0e61e4 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -234,7 +234,7 @@ const CodeEditor = createClass({ if(!overwrite) { cm.setCursor(cm.getCursor('from')); } - cm.replaceSelection(injectText, 'around'); + cm.replaceSelection(injectText, 'end'); }, makeUnderline : function() {