allow folds with empty placeholder

This commit is contained in:
nightwing 2012-10-12 15:28:02 +04:00
commit e1697c2dfd
4 changed files with 6 additions and 10 deletions

View file

@ -1893,10 +1893,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;