From 175ed3618b48bdfa07c2491aaa0b0bb748c3fbbe Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 23 Oct 2012 09:48:18 +0400 Subject: [PATCH] #1054 Opera indent bug --- lib/ace/mode/behaviour/cstyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/behaviour/cstyle.js b/lib/ace/mode/behaviour/cstyle.js index 8397e79c..346b5867 100644 --- a/lib/ace/mode/behaviour/cstyle.js +++ b/lib/ace/mode/behaviour/cstyle.js @@ -116,7 +116,7 @@ var CstyleBehaviour = function () { }; } } - } else if (text == "\n") { + } else if (text == "\n" || text == "\r\n") { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); var rightChar = line.substring(cursor.column, cursor.column + 1);