Skip to content

Commit

Permalink
update narcissus. fix ajaxorg#365
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Aug 4, 2011
1 parent 69d8e19 commit 1b02f28
Show file tree
Hide file tree
Showing 4 changed files with 2,682 additions and 1,813 deletions.
5 changes: 3 additions & 2 deletions lib/ace/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var Document = function(text) {


this.$detectNewLine = function(text) {
var match = text.match(/^.*?(\r?\n)/m);
var match = text.match(/^.*?(\r\n|\r|\n)/m);
if (match) {
this.$autoNewLine = match[1];
} else {
Expand All @@ -111,7 +111,8 @@ var Document = function(text) {
this.$autoNewLine = "\n";
this.$newLineMode = "auto";
this.setNewLineMode = function(newLineMode) {
if (this.$newLineMode === newLineMode) return;
if (this.$newLineMode === newLineMode)
return;

this.$newLineMode = newLineMode;
};
Expand Down
Loading

0 comments on commit 1b02f28

Please sign in to comment.