trigger recalculation of lines length if soft wrap is toggles

This commit is contained in:
Fabian Jakobs 2011-01-27 19:40:45 +01:00
commit 436344d9ce

View file

@ -643,9 +643,8 @@ var EditSession = function(text, mode) {
if (useWrapMode != this.$useWrapMode) {
this.$useWrapMode = useWrapMode;
this.$updateWrapData(0, this.getLength() - 1);
this.$modified = true;
this._dispatchEvent("changeWrapMode");
// TODO: Add this one back.
// this.fireChangeEvent(0);
}
};