Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fix get length of last line to fold everything right
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Nov 11, 2015
1 parent 5389b18 commit c6c60f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/js/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@
count++;
}
}
var len = editor.session.getLine(count);
editor.session.selection.addRange(new Range(0, 0, count, 256));
var len = editor.session.getLine(count).length;
console.log(len);
editor.session.selection.addRange(new Range(0, 0, count, len));
editor.session.toggleFold(false);
editor.session.selection.clearSelection();
}
Expand Down

0 comments on commit c6c60f6

Please sign in to comment.