fix some refactoring bugs
This commit is contained in:
parent
dce8d5dbf3
commit
89181da423
4 changed files with 23 additions and 21 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue