From bdce832fee9db7c8de523dfe9a8ea2791110b020 Mon Sep 17 00:00:00 2001 From: mic704b Date: Tue, 18 Feb 2020 10:28:55 +1100 Subject: [PATCH] Desktop: Ensure tabs act like tabs and spaces act like spaces in editor. (#2508) --- ElectronClient/app/gui/NoteText.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ElectronClient/app/gui/NoteText.jsx b/ElectronClient/app/gui/NoteText.jsx index a94d4064d5..be6a8c5f02 100644 --- a/ElectronClient/app/gui/NoteText.jsx +++ b/ElectronClient/app/gui/NoteText.jsx @@ -2144,7 +2144,9 @@ class NoteTextComponent extends React.Component { onFocus={this.aceEditor_focus} readOnly={visiblePanes.indexOf('editor') < 0} // Enable/Disable the autoclosing braces - setOptions={{ behavioursEnabled: Setting.value('editor.autoMatchingBraces') }} + setOptions={{ + behavioursEnabled: Setting.value('editor.autoMatchingBraces'), + useSoftTabs: false }} // Disable warning: "Automatically scrolling cursor into view after // selection change this will be disabled in the next version set // editor.$blockScrolling = Infinity to disable this message"