From ca34ca499d0679b466845cd380c0d39194797ee9 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Mon, 22 May 2023 22:40:18 -0400 Subject: [PATCH] Remove duplicate tabs --- shared/naturalcrit/codeEditor/codeEditor.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index 2b3aa0125..d127bfdd8 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -176,11 +176,11 @@ const CodeEditor = createClass({ indent : function () { const cm = this.codeMirror; - if (cm.somethingSelected()) { - cm.execCommand('indentMore'); - } else { - cm.execCommand('insertSoftTab'); - } + if (cm.somethingSelected()) { + cm.execCommand('indentMore'); + } else { + cm.execCommand('insertSoftTab'); + } }, dedent : function () {