remove destructive throw

This commit is contained in:
nightwing 2012-04-25 00:44:31 +04:00
commit 8666652769

View file

@ -177,7 +177,9 @@ function FoldLine(foldData, folds) {
&& fold.start.column != column
&& fold.start.row != row)
{
throw "Moving characters inside of a fold should never be reached";
//throwing here breaks whole editor
//@todo properly handle this
window.console && window.console.log(row, column, fold);
} else if (fold.start.row == row) {
folds = this.folds;
var i = folds.indexOf(fold);