fix typo
This commit is contained in:
parent
ce34f235b8
commit
0895601b7f
1 changed files with 2 additions and 2 deletions
|
|
@ -71,8 +71,8 @@ oop.inherits(Mode, TextMode);
|
|||
this.autoOutdent = function(state, doc, row) {
|
||||
var prevLine = doc.getLine(row);
|
||||
var match = prevLine.match(/^\s+/);
|
||||
var column = prevLine.lastIndexOf(".");
|
||||
if (!match || row == 0 || column == -1) return 0;
|
||||
var column = prevLine.lastIndexOf(".") + 1;
|
||||
if (!match || !row || !column) return 0;
|
||||
|
||||
var line = doc.getLine(row + 1);
|
||||
var startRange = this.getMatching(doc, {row: row, column: column});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue