fix some refactoring bugs

This commit is contained in:
Fabian Jakobs 2010-11-09 09:24:24 +01:00
commit 89181da423
4 changed files with 23 additions and 21 deletions

View file

@ -391,7 +391,7 @@ var Document = function(text, mode) {
while (true) {
while(column >= 0) {
var ch = line.chAt(column);
var ch = line.charAt(column);
if (ch == openBracket) {
depth -= 1;
if (depth == 0) {
@ -424,7 +424,7 @@ var Document = function(text, mode) {
while (true) {
while(column < line.length) {
var ch = line.chAt(column);
var ch = line.charAt(column);
if (ch == closingBracket) {
depth -= 1;
if (depth == 0) {