trigger recalculation of lines length if soft wrap is toggles
This commit is contained in:
parent
27db482e8e
commit
436344d9ce
1 changed files with 1 additions and 2 deletions
|
|
@ -643,9 +643,8 @@ var EditSession = function(text, mode) {
|
||||||
if (useWrapMode != this.$useWrapMode) {
|
if (useWrapMode != this.$useWrapMode) {
|
||||||
this.$useWrapMode = useWrapMode;
|
this.$useWrapMode = useWrapMode;
|
||||||
this.$updateWrapData(0, this.getLength() - 1);
|
this.$updateWrapData(0, this.getLength() - 1);
|
||||||
|
this.$modified = true;
|
||||||
this._dispatchEvent("changeWrapMode");
|
this._dispatchEvent("changeWrapMode");
|
||||||
// TODO: Add this one back.
|
|
||||||
// this.fireChangeEvent(0);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue