Merge pull request #1085 from ajaxorg/folding-2

improve folding behavior
This commit is contained in:
Mostafa Eweda 2012-11-06 23:48:06 -08:00
commit 2c86ab5bcd
9 changed files with 99 additions and 58 deletions

View file

@ -1899,10 +1899,9 @@ var EditSession = function(text, mode) {
row ++;
} else {
tokens = [];
foldLine.walk(
function(placeholder, row, column, lastColumn) {
foldLine.walk(function(placeholder, row, column, lastColumn) {
var walkTokens;
if (placeholder) {
if (placeholder != null) {
walkTokens = this.$getDisplayTokens(
placeholder, tokens.length);
walkTokens[0] = PLACEHOLDER_START;