Request: Option to disable automatic indenting. #485

Open
evaryont opened this Issue Oct 31, 2011 · 0 comments

Comments

Projects
None yet
1 participant

I don't think it would be too difficult, since the follow patch shows how to permanently disable auto-indenting. (Not the best way, but I'm just doing this one time. :-) )

diff --git a/lib/ace/editor.js b/lib/ace/editor.js                                                                                                                                             
index e51b372..9592f49 100644
--- a/lib/ace/editor.js
+++ b/lib/ace/editor.js
@@ -482,6 +482,7 @@ var Editor =function(renderer, session) {
         // TODO disabled multiline auto indent
         // possibly doing the indent before inserting the text
         // if (cursor.row !== end.row) {
+        /*
         if (session.getDocument().isNewLine(text)) {
             this.moveCursorTo(cursor.row+1, 0);

@@ -518,6 +519,7 @@ var Editor =function(renderer, session) {
         }
         if (shouldOutdent)
             mode.autoOutdent(lineState, session, cursor.row);
+        */
     };

     this.onTextInput = function(text, notPasted) {

@gissues:{"order":37.2670807453419,"status":"backlog"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment