Merge pull request #1591 from rmsmith/wraplimitrange_bugfix

`EditSession.setWrapLimitRange` should set a new object to `this.$wrapLi...
This commit is contained in:
Harutyun Amirjanyan 2013-09-06 06:45:08 -07:00
commit 1728b50198

View file

@ -1574,8 +1574,10 @@ var EditSession = function(text, mode) {
**/
this.setWrapLimitRange = function(min, max) {
if (this.$wrapLimitRange.min !== min || this.$wrapLimitRange.max !== max) {
this.$wrapLimitRange.min = min;
this.$wrapLimitRange.max = max;
this.$wrapLimitRange = {
min: min,
max: max
};
this.$modified = true;
// This will force a recalculation of the wrap limit
this._emit("changeWrapMode");